RE: [PHP] Running php code inside of a string within a php script ..

From: Date: Mon, 05 Mar 2001 09:07:09 +0000
Subject: RE: [PHP] Running php code inside of a string within a php script ..
Groups: php.general 
Request: Send a blank email to php-general+get-42590@lists.php.net to get a copy of this message
Writing the string to a file and then include()ing it would work. It does seem a bit heavy handed, but unless there's a string equivelant of include() this may actually be the best way. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -----Original Message----- > From: Aviv Revach [mailto:aviv_r@brillianet.com] > Sent: 01 March 2001 18:02 > To: Lucas Persona; php-list > Subject: Re: [PHP] Running php code inside of a string within a php > script.. > > > Hey! > > At 14:29 02/03/01 -0300, Lucas Persona wrote: > >Hy there! > > > >Aviv Revach wrote: > > > How can I make those php3 commands to work as they supposed to? > > > > Take a look at the eval() function > >http://www.php.net/manual/en/function.eval.php > > It does exactly what you are looking for... > > Actually it doesn't. My string does not(!!) contains only php code. > It contains HTML tags, text, and php code (called with <?php ?>). > > Now, What should I do in order to run both the html tags and > the php commands > in it? > > > Thank you in advance - > > Aviv Revach > > BRILLIANeT Website - > http://www.brillianet.com/ > >

« previous php.general (#42590) next »