RE: [PHP] Mixing PHP3 & SSI
| From: | Rasmus Lerdorf | Date: | Sun, 14 Jan 2001 05:12:17 +0000 |
| Subject: | RE: [PHP] Mixing PHP3 & SSI | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34447@lists.php.net to get a copy of this message | ||
> 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.
readfile() is not broken at all. It is silly to use readfile() to access
the local server. virtual() does that just fine. Having readfile() lie
about the browser type that it is and send along fake headers would not be
a good idea. If you want to do something like that use fsockopen() and
connect to port 80 of your server and send all the fake headers you want.
-Rasmus