At 04:57 PM 4/29/2001 +0200, Luca wrote:
>Andi Gutmans <[EMAIL PROTECTED]> wrote:
>
> > Do you mean eval()? It evaluates code which is a string, for example:
> > eval ('print(2);');
> >
> > If you can develop your application without using eval() you're better off
> > as it is very slow.
>
>Unfortunately eval() is not what I need. I want the string to be
>parsed *in HTML mode* [1], just like include() and require() do. The
>problem is they work with files, while what I have is a variable.
>I could write the string to a temp file, and then use include(), but
>that would be kind of slow. It would be done in every page, so it
>needs to be reasonably fast (my application is already slowed down
>by the use of XSLT).
>
>[1] see http://www.php.net/manual/en/function.include.php,
>     3rd paragraph

Why not just stick a ?> in the beginning of your string?

Andi


-- 
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