Re: evaluating are returning a page
| From: | Chris Adams | Date: | Sat, 24 Jun 2000 00:26:38 +0000 |
| Subject: | Re: evaluating are returning a page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2880@lists.php.net to get a copy of this message | ||
> Does anyone know how to take the source a php file (likely to have quite a
> lot of php lines), evaluate it, and then print the outpu to the browser?
> This may sound crazy, but there is method in my madness :-)
>
> I would use the eval() function but that only does one line at a time
> whereas the scripts may span many lines.
Did you try something like eval(join("", file("myfile.php"))) ?