hardyvoje Posted July 23, 2006 Share Posted July 23, 2006 Hello,Is there possibility to execute code from $string?I would like to store some PHP code in database, and them to include it somehow in page.This code should be modified dinamycly and then executed? is that possible?Thanks! Quote Link to comment Share on other sites More sharing options...
Joe Haley Posted July 23, 2006 Share Posted July 23, 2006 http://php.net/manual/en/function.eval.php Quote Link to comment Share on other sites More sharing options...
hardyvoje Posted July 23, 2006 Author Share Posted July 23, 2006 Thanks man! Quote Link to comment Share on other sites More sharing options...
Joe Haley Posted July 23, 2006 Share Posted July 23, 2006 Please, do remember:[b][u]Validate user input, removing any possible PHP code[/u] when evaling a string.[/b] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.