Re: Executing scripts from a table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yeah, that was it. Thanks, Thomas.

(dang it, I should have been able to figure out that myself!)

Ken


On Feb 2, 2007, at 11:32 AM, Thomas Pedoussaut wrote:

Ken Kixmoeller -- reply to ken@xxxxxxxxxxxxxx wrote:
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 think you're thinking of eval()
http://ie2.php.net/manual/en/function.eval.php

It should do what you want.

--
Thomas



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux