Executing scripts from a table
| From: | Ken Kixmoeller -- reply to ken@kixmoeller.com | Date: | Fri, 02 Feb 2007 17:32:25 +0000 |
| Subject: | Executing scripts from a table | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-248201@lists.php.net to get a copy of this message | ||
Hi, folks -- - -
For security and efficiency, I am trying to store PHP scripts in MySQL tables. Only problem: I can't get them to execute.
In a template:
----------------------------------------
$php_code = $this->ApplicationObject->GetStoredCode($whichpage);
echo $php_code; // doesn't execute
print_r($php_code); // doesn't execute, either
----------------------------------------
I've looked for some kind of exec_script() function without luck.
I can't be the first one to have done this. Any ideas or resources you can point me to?
Thank you -- - -
Ken