Re: problem with using include to a URL
| From: | John Holmes | Date: | Wed, 01 Sep 2004 14:14:52 +0000 |
| Subject: | Re: problem with using include to a URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195394@lists.php.net to get a copy of this message | ||
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 2Is 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...