View Full Version : Executing PHP from variable
wibumba
07-07-2008, 03:58 AM
I have a flash file (swf) coded to send post data to a php file. The post data includes php code to execute. Is there a way to execute PHP in a variable other than writing it to another .php file and running it?
Master_script_maker
07-07-2008, 12:10 PM
you would use eval($string); (http://us.php.net/manual/en/function.eval.php)
techietim
07-07-2008, 12:35 PM
Yes, you'd use the method Master_script_maker has shown above. Remember, be very careful when eval'ing items. A user maybe able to insert his own PHP in and could even delete your whole site.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.