Mixing PHP3 & SSI
| From: | Scott Brown | Date: | Sun, 14 Jan 2001 04:53:56 +0000 |
| Subject: | Mixing PHP3 & SSI | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-34441@lists.php.net to get a copy of this message | ||
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?