RE: [PHP] Mixing PHP3 & SSI

From: Date: Sun, 14 Jan 2001 05:10:47 +0000
Subject: RE: [PHP] Mixing PHP3 & SSI
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34446@lists.php.net to get a copy of this message
Well, it means redeveloping the entire site then - i'm just trying to add one PHP page to a couple of dozen others that are entirely built out of pieces of SHTML - not reinvent the wheel (I'm not getting paid for my time here - it's volunteer work ;-) If readfile is indeed that "broken", maybe we can talk the powers that be into dumping full HTTP headers through the readfile call in a future version.... I mean, the main script has it already from when it was called... so it should be able to sub-call pages in that same context. Maybe they'll like it without all the site menus and headers.........(well, it's worth asking...) > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmus@php.net] > Sent: Sunday, January 14, 2001 12:02 AM > To: Scott Brown > Cc: php-general@lists.php.net > Subject: RE: [PHP] Mixing PHP3 & SSI > > > Well, your readfile() method will never work in any version > of PHP. Why > not just port all your SSI stuff to PHP? There is nothing > you can do in > SSI that you can't easily do in PHP. > > -Rasmus > > On Sun, 14 Jan 2001, Scott Brown wrote: > > > 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 > > > > > > > > > -- > > 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 (#34446) next »