Re: problem with using include to a URL

From: Date: Wed, 01 Sep 2004 14:27:44 +0000
Subject: Re: problem with using include to a URL
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195401@lists.php.net to get a copy of this message
We do have "allow_url_fopen" set to be on. I can not find any docs. on "allow_burl_fopen". Was that a typo or where can I find info for that variable? PHP is working fine if we do the includes like this: include '/somepath/somefile.php'; The URL that we are trying to get to is on the same box. If I am on that box I can use a text browser to it see the file that I am trying to include. Any other help? Tim John Holmes wrote:
From: "Tim Wolgemuth" <tim-list@wolgemuth.cc>
Code that produces errors: <?php fopen("http://somewebhost.domain.gTLD/index.html", "r"); $httpfile = file_get_contents("http://somewebhost.domain.gTLD/index.html"); include 'http://somewebhost.domain.gTLD/index.html'; ?> Errors: Warning: fopen(http://somewebhost.domain.gTLD): failed to open stream: HTTP request failed! in /www/localwebhost.domain.gTLD/htdocs/test.php on line 2
Is allow_burl_fopen enabled? It's the same error for all three attempts, basically. It simply cannot connect to the HTTP site. you're sure the site is up, right? PHP is running as the web server, does that have access to the http:// site you're requesting? ---John Holmes...


« previous php.general (#195401) next »