Re: PHP Failing to open remote files using include/require

From: Date: Thu, 23 Sep 2004 18:20:09 +0000
Subject: Re: PHP Failing to open remote files using include/require
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197729@lists.php.net to get a copy of this message
On Thu, 23 Sep 2004 15:04:26 +0100, Mark Cooke <lists@funkypenguin.net> wrote: > I have a server hosted by a company running Win2k, they are in charge of > the maintainance, and we had a site working fine, then yesterday, it > failed to include any files using http:// using: > include > ("http://".$_SERVER['SERVER_NAME']."/dir/somefile.php"õbŸ#körQ It sounds like you're doing a thorough troubleshooting job, so I'll just throw a few random thoughts your way. Have you tried to open the file using a web browser on the server in question? For example, can you open http://www.somesite.com/test.txt from the PHP server having the trouble? Have you tried using double quotes instead of single quotes on the include statements? I know this shouldn't make any difference, but I've seen enough weird things happen to make me think to try it.

« previous php.general (#197729) next »