From: "Tim Wolgemuth" <[EMAIL PROTECTED]>

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...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to