RE: [PHP] Mixing PHP3 & SSI

From: Date: Sun, 14 Jan 2001 05:01:46 +0000
Subject: RE: [PHP] Mixing PHP3 & SSI
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34444@lists.php.net to get a copy of this message
I tried virtual first - but it didnt work. it grabbed the first <? virtual(...) ?> call, processed it, and then forgot about the rest of the page. > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmus@php.net] > Sent: Saturday, January 13, 2001 11:56 PM > To: Scott Brown > Cc: php-general@lists.php.net > Subject: Re: [PHP] Mixing PHP3 & SSI > > > Why did you decide not to use virtual? The readfile() method you are > using turns PHP into the browser and it makes a completely > new request to > your web server. > > -Rasmus > > On Sat, 13 Jan 2001, Scott Brown wrote: > > > Ok - I thought I saw that it could be done, so I tried > it... and I almost > > got it working. > > > > But rather than one simple layer, I've got SHTML that calls > other SHTML and > > so on.... it made changes really simple until now ;-) > > > > So anyways, rather than use <? virtual(....) ?> I've replaced my > > > > <!--#include virtual="...." --> > > > > with > > > > <? readfile("http://.....") --> > > > > and renamed the page to .php, and it works - EXCEPT..... > > > > The processing of the readfile does NOT pass through > sufficient information > > for a browser determination against the HTTP_USER_AGENT variable. > > > > Everything I'm receiving is from the "else side" of the > > > > <!--#if expr="\"$HTTP_USER_AGENT\" = /.*MSIE.*/" --> > > ie specific > > <!--#else --> > > netscrap specific > > <!--#endif --> > > > > Is this a known bug in PHP3(.0.15) thats fixed in PHP4, or > have I stepped in > > it again? > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#34444) next »