Re: [PHP] Eval To String

2005-12-07 Thread David Grant
Shaun Shaun wrote: > Is it possible to return the result of eval function to a string rather than > outputting directly to the browser? ob_start(); eval('$eval = "evil";'); $output = ob_get_clean(); Cheers, David Grant -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (htt

RE: [PHP] Eval To String

2005-12-07 Thread Jay Blanchard
[snip] Is it possible to return the result of eval function to a string rather than outputting directly to the browser? Thanks for your advice [/snip] Yes. You're welcome. The first freakin' example in TFM http://www.php.net/eval is this; -- PHP General Mailing List (http://www.php.net/)

[PHP] Eval To String

2005-12-07 Thread Shaun
Hi, Is it possible to return the result of eval function to a string rather than outputting directly to the browser? Thanks for your advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: AW: [PHP] eval() to string???

2001-01-24 Thread Steve Edberg
>-Ursprüngliche Nachricht- >Von: Robert S. White [mailto:[EMAIL PROTECTED]] >Gesendet: Mittwoch, 24. Januar 2001 16:20 >An: [EMAIL PROTECTED] >Betreff: Re: [PHP] eval() to string??? > > >How is this going to help me? > >I want to evaluate the code in

RE: [PHP] eval() to string???

2001-01-24 Thread indrek siitan
Hi, > I want to evaluate the code in $php_code to *another* string... you have to do it through output buffering: ob_start(); eval($php_code); $another_string=ob_get_contents(); ob_end_clean(); Rgds, Tfr --==< [EMAIL PROTECTED] >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==--

AW: [PHP] eval() to string???

2001-01-24 Thread Thomas Weber
6:20 An: [EMAIL PROTECTED] Betreff: Re: [PHP] eval() to string??? How is this going to help me? I want to evaluate the code in $php_code to *another* string... - Original Message - From: Thomas Weber <> To: Php-General <> Sent: Wednesday, January 24, 2001 10:14 AM Subject:

Re: [PHP] eval() to string???

2001-01-24 Thread Robert S. White
How is this going to help me? I want to evaluate the code in $php_code to *another* string... - Original Message - From: Thomas Weber <> To: Php-General <> Sent: Wednesday, January 24, 2001 10:14 AM Subject: AW: [PHP] eval() to string??? > try >

AW: [PHP] eval() to string???

2001-01-24 Thread Thomas Weber
try eval("\$php_code;"); -Ursprüngliche Nachricht- Von: [ rswfire ] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 24. Januar 2001 15:36 An: [EMAIL PROTECTED] Betreff: [PHP] eval() to string??? I want to evaluate some PHP code to a string. How can I do this? $php_code = &q

[PHP] eval() to string???

2001-01-24 Thread [ rswfire ]
I want to evaluate some PHP code to a string. How can I do this? $php_code = "echo 'hello';" I would like to evaluate the code to "hello" in another string...