Re: Running php code inside of a string within a php script..

From: Date: Mon, 05 Mar 2001 01:35:59 +0000
Subject: Re: Running php code inside of a string within a php script..
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-42549@lists.php.net to get a copy of this message
You can save the string to, say, "temp.php" and then use include("temp.php"). -- Jovan Sedlan info@sedlan.com http://www.sedlan.com #7 Components Home "Aviv Revach" <aviv_r@brillianet.com> wrote in message news:4.3.1.2.20010301195926.00a8fce0@mail.brillianet.com... > 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/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#42549) next »