You want the eval() function.

manual entry:


On Fri, 7 Jun 2002, Jean-Rene Cormier wrote:

> I'm trying to make a script that'll take some pages from a database but
> I want it to execute the PHP that's in the pages that it'll fetch from
> the database.
> Say it gets the data from the page in $data I want it to put the data on
> the screen and if there's some PHP code in the $data variable I want it
> to be executed. Is there a way I can do that?
> Jean-Rene Cormier

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to