check out this ini value:
allow_url_fopen
its set to false for some versions of PHP.
another thing, do a sanity check to make sure it works at all... like this:
$fp = fopen ("c:\\temp\\test.txt", "r");
also note, you cant use include() or require() with remote files on windows.
also note, if this is a heavily trafficked site (like weather.com,
google, or Yahoo), the response might not be html, it might actually be
gzipped html, which fopen() isn't smart enough to handle. Do a test
with a known site.
last resort, make sure that the service you are running PHP as is a
service that has access to the network. For example, the default
install of Apache and IIS probably runs as the Local User, you might
need to run it as a domain user, such as yourself. You should be able
to change this in the services control panel... I dont know if this
matters at all, but you might as well try.
--
Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424
> I am trying to do a simple fopen("http://www.weather.com/index.html", "r");
> For some reason I cannot Open any URL's after trying several.
>
> I get the following error
>
> Warning: stat failed for Resource id #1 (errno=2 - No such file or
> directory)
> I checked my php.ini to make sure I set the fopen wrappers and they are set.
>
> Any help would be appreciated.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php