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:[EMAIL PROTECTED]]
> 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/
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to