|
Posted by Wayne on 09/01/06 20:37
On Fri, 1 Sep 2006 19:14:15 +0200, <talthen.z-serwera.o2@nospam.pl>
wrote:
>Hello,
>I have a php file with php and html code. It looks like this:
>
><html> ...<? ... ?> </html>
>
>If I had this file on disk then I could just include it, but I have this
>file in string.
>When I eval() the string I got a parse error. How can I execute it?
Would you believe you do this:
eval('?>'.$my_html_text.'<?php');
It's bizzare, but it works.
Navigation:
[Reply to this message]
|