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! Link to comment https://forums.phpfreaks.com/topic/15390-executing-php-code-from-string/ 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 Link to comment https://forums.phpfreaks.com/topic/15390-executing-php-code-from-string/#findComment-62376 Share on other sites More sharing options...
hardyvoje Posted July 23, 2006 Author Share Posted July 23, 2006 Thanks man! Link to comment https://forums.phpfreaks.com/topic/15390-executing-php-code-from-string/#findComment-62377 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] Link to comment https://forums.phpfreaks.com/topic/15390-executing-php-code-from-string/#findComment-62425 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.