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
?>
/* 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
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
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]...
> >
> 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
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
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
7 matches
Mail list logo