Re: [PHP] Parse PHP inside a variable

2001-06-21 Thread Claus Heiko Niesen
At 12:20 AM 06/21/2001, Christopher Ostmo wrote: >Checkout eval() >http://www.php.net/manual/en/function.eval.php > >The second user contributed note contains an example of how to do this. > >Good luck... Thank you for the quick response Christopher and Jason. The eval( "?>$string" ); is exactl

Re: [PHP] Parse PHP inside a variable

2001-06-21 Thread Zak Greant
?> /* Note - I have not tested the above code, however it should work... :) */ Good luck! --zak - Original Message - From: "James Atkinson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 10:08 PM Subject: RE: [PHP] Parse PHP inside a

Re: [PHP] Parse PHP inside a variable

2001-06-21 Thread Christopher Ostmo
Claus Heiko Niesen pressed the little lettered thingies in this order... > Hello > > I'm having a variable that contains HTML with embedded PHP code. When I > echo it then the PHP code does not get executed. Is there a way I can > parse/print the content of my variable? > > Checkout eval() h

RE: [PHP] Parse PHP inside a variable

2001-06-21 Thread James Atkinson
20, 2001 3:01 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Parse PHP inside a variable > > > maybe function eval()? > > lenar. > "Claus Heiko Niesen" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >

RE: [PHP] Parse PHP inside a variable

2001-06-21 Thread Jason Murray
> I'm having a variable that contains HTML with embedded PHP > code. When I echo it then the PHP code does not get executed. Is there a > way I can parse/print the content of my variable? eval(), though you might have to be careful if it's HTML and PHP. Jason -- PHP General Mailing List (h

Re: [PHP] Parse PHP inside a variable

2001-06-20 Thread J Smith
Try eval(): http://www.php.net/manual/en/function.eval.php i.e. J "Claus Heiko Niesen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello > > I'm having a variable that contains HTML with embedded PHP code. When I > echo it then the PHP code does not

Re: [PHP] Parse PHP inside a variable

2001-06-20 Thread Lenar Lõhmus
maybe function eval()? lenar. "Claus Heiko Niesen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello > > I'm having a variable that contains HTML with embedded PHP code. When I > echo it then the PHP code does not get executed. Is there a way I can > pars