|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-19 02:07 UTC] gottlieb at nuri dot net
[2002-03-21 16:52 UTC] rasmus@php.net
[2002-03-21 16:53 UTC] norny at geocities dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
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