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,

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to