For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > May 2006 > RE: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
Oliver Albers

2006-05-24, 6:59 pm

> > Seriously ? I translate that and I'm really wondering the truth about [color=darkred]

That's what I was writing about.
[color=darkred]

The sense is you can do stuff like
$code_str = '<html>...<body><?php echo $something; ?></body></html>';
And then prepend that string with '?>' when using eval:
eval('?>'. $code_str);
Where $code_str might as well be read from a database.
[color=darkred]

I'll think of some rewording. I did not want to add a whole paragraph to
the manual page as doing things like the above example was obvious to me
but some people didn't realize that was possible.

Olli

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com