Interpreting PHP in dynamic generated web-pages
| From: | Dieter Stolpmann | Date: | Thu, 05 Jul 2001 18:17:43 +0000 |
| Subject: | Interpreting PHP in dynamic generated web-pages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-56354@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to solve the following issue in a (hopefully) simply way:
- I'm creating web-pages using php and perl (using a page template)
- the dynamically created pages may contain php code which I like to get
interpreted in a normal fasion.
The ideas is have to solve the problem are:
- using 'eval()' ... that does not seem to work correctly, because
the pages may use <?php ... ?> blocks allover and the variable
context seems not to be maintained. (btw: I already redirected the
eval() output to a string)
- save the created page to a file and redirect the browser to the
new page (seems to be slow, because interaction with the users
browser is required
What I like to do:
- simply create the page (as normal), but instead of sending this
page to the browser, I like to send it to the web-server again
(linux with apache & windows with IIS). So the webserver
can handle the page as it had been a normal php page.
Any idea????