Bug #15667 Updated: problems with include()
| From: | norny at geocities dot com | Date: | Thu, 21 Mar 2002 21:53:30 +0000 |
| Subject: | Bug #15667 Updated: problems with include() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3091@lists.php.net to get a copy of this message | ||
ID: 15667
Updated by: norny@geocities.com
Reported By: davey@its-explosive.net
Status: Closed
Bug Type: Unknown/Other Function
Operating System: FreeBSD 4.4-RELEASE
PHP Version: 4.1.1
New Comment:
We worked out a solution in #php on OPN. Had to turn off expose_php.
Rasmus said the problem was completely gone in 4.3.0. *shrug*
Previous Comments:
------------------------------------------------------------------------
[2002-03-21 16:52:58] rasmus@php.net
I figured this one out. Turns out his Server: string was massive
overflowing our HTTP_HEADER_BLOCK_SIZE giving a weird effect. The
problem seems to be gone in the 4.3 streams code. But a fix has been
committed to 4.2.
------------------------------------------------------------------------
[2002-03-19 02:07:10] gottlieb@nuri.net
It seems that this problem has something to do with the mode change of
php engine when it meets include() function;
I heard that when php engine meet include(), it turns into html mode.
If it's true, there seems a high probablity that php engine recognize
the mode change as having begun some output to the browser with html
mode - not so consistently.
Pls check this possibility.
I hope my comment could help solving the problem.
------------------------------------------------------------------------
[2002-02-22 00:58:54] davey@its-explosive.net
Whenever I include (or require) a page, using an http url as the file
value (i.e. include("http://www.its-explosive.net/~davey/info.php");)
I
get this header added to the top of the page I've included.
This does not happen when I use a relative path.
http://www.its-explosive.net/~davey/header.php
show what happen when I
include the file info.php using a http url to it.
---
<?php include("http://www.its-explosive.net/~davey/header.php");
?>
---
The contents of info.php are "<?php phpinfo(); ?>".
http://www.its-explosive.net/~davey/noheader.php
shows what happens
when I include it using the relative path:
---
<?php include("info.php"); ?>
---
The only difference (in case you didn't go, or you missed it) is the
text:
---
X-Powered-By: PHP/4.1.1 Connection: close Content-Type: text/html
---
is just added onto the top.
If you goto the urls you will see my phpinfo(); and can perhaps glean
some othre info from there.
I do know that if someone else includes my PHP files in their website
using the include("http://..."); code they also see the
x-powered-by
header...
I've been looking around for a solution to this for weeks, I bet it's
something simple, but I just can't find it.
I hope you can help
- Davey
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15667&edit=1