Re: Interpreting PHP in dynamic generated web-pages
| From: | lists at merlin dot tech dot intelinet dot ro | Date: | Thu, 05 Jul 2001 19:30:16 +0000 |
| Subject: | Re: Interpreting PHP in dynamic generated web-pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56374@lists.php.net to get a copy of this message | ||
On Thu, 5 Jul 2001, Dieter Stolpmann wrote:
> 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.
Oh, let me see if I get this right: You need to have something like perl
or php generate hybrid html/php content, so you want this content be
reinterpreted by PHP, right?
Here's how I see things:
say http://mydom.com/cgi-bin/dynsite.pl is the
thing that generates the
html/php code. Make http://mydom.com/index.php contain just
this line:
<? include ("http://mydom.com/cgi-bin/dynsite.pl")
?>
This works effectively as a include-virtual SSI directive: it reads from
http and interprets the stream as php code. I have checked it and it seems
to work just fine.
Good luck,
georgeb