Re: Executing PHP stored in MySQL-database?

From: Date: Thu, 24 May 2001 09:49:10 +0000
Subject: Re: Executing PHP stored in MySQL-database?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54190@lists.php.net to get a copy of this message
aquariuz wrote: > > Hi, > Is it possible to execute PHP stored in a MySQL-database? > If so, how to do it? > > In the example below I store "Hello world!<BR>" in a database, and next I > echo it. "Hello world!" is printed on the screen. > > But how to > * store PHP-code in a database > * and execute it? > > > ... Use eval(). http://www.php.net/manual/en/function.eval.php -- Pavel a.k.a. Papi

« previous php.general (#54190) next »