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" <[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