Re: HTTP Include Error

From: Date: Mon, 28 Feb 2005 23:19:19 +0000
Subject: Re: HTTP Include Error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-209634@lists.php.net to get a copy of this message
Suhas wrote:
Hi This issue has been discusses many times before, but no perticular solution found. include '/www/.............../file.php' => works fine include 'http://google.com/' => works fine include 'http://myserver.com/file.php' => Warning: main(http://myserver.com/file.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /www/myserver/file2.php on line 4 Warning: main(): Failed opening 'http://myserver.com/file.php' for inclusion (include_path='') in ..................... 4 allow_url_fopen = ON The file is on same machine. It is not a file access prblem, I have ried with OPEN (777) permissions. Can anyone please shed some light on this? Thanks SP
the file not was found, it's not a php problem, but rather apache or dns misconfiguration. You can try wget http://myserver.com/file.php from the server shell and you should see the same response.

« previous php.general (#209634) next »