Re: Mixing PHP3 & SSI

From: Date: Sun, 14 Jan 2001 04:55:50 +0000
Subject: Re: Mixing PHP3 & SSI
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34442@lists.php.net to get a copy of this message
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 >

« previous php.general (#34442) next »