Including without a file
| From: | Charles Wiltgen | Date: | Wed, 13 Nov 2002 22:08:02 +0000 |
| Subject: | Including without a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124319@lists.php.net to get a copy of this message | ||
Hello,
I was looking for a way to include() from a variable. I can't just use
eval(), since what's in the variable is a mixed PHP/XHTML.
Well, it turns out that there's an answer in the user notes, which haven't
worked on php.net for a few days. Basically, you eval("?>" . $stuff);
-- Charles Wiltgen