Guardian-Mage Posted July 30, 2007 Share Posted July 30, 2007 Ok, on my website(It is secure and only accessible to me) I have a form with a text area. I enter php statements there, such as last_modified() so I can see the result, than I click Execute. Here is where I am stuck. I need to take the post data from the textarea and execute it as php. Any idea how I can do this? Link to comment https://forums.phpfreaks.com/topic/62504-executing-php-statements-from-a-variable/ Share on other sites More sharing options...
akitchin Posted July 30, 2007 Share Posted July 30, 2007 the eval() function takes a string expected to be valid PHP code and executes it. Link to comment https://forums.phpfreaks.com/topic/62504-executing-php-statements-from-a-variable/#findComment-311099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.