Evaluating code
| From: | Ernesto | Date: | Wed, 06 Mar 2002 20:55:24 +0000 |
| Subject: | Evaluating code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87519@lists.php.net to get a copy of this message | ||
Hi,
I have code stored on a server which I retrieve via fsockopen() and put it into a variable (It's like if it were on a database).
Now, I want to eval that code, but eval() won't work because it has HTML and PHP mixed, with <?php ?> and everything.
I know I can eval this code saving it to a file and then including it, but I want to know if there's a better way.
As I'm going to do this all the time, I prefer not to create temporary files (so I don't slow down everything).
Any ideas?
Thanks in advance,
Ernesto