Re: PHP code in a database

From: Date: Fri, 07 Jun 2002 16:15:05 +0000
Subject: Re: PHP code in a database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101135@lists.php.net to get a copy of this message
You want the eval() function. manual entry: http://www.php.net/eval mh. 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

« previous php.general (#101135) next »