Hello,
I am finding some trouble with the use of fopen() or file(), to acces a remote HTML file from a PHP script.
The code is as simple as this:
$fcontents = implode ('', file ('http://www.stanford.edu/'));
or
$fp = fopen ("http://www.google.com/", "r");
In all but a few cases I get the message:
Warning: php_hostconnect: connect failed...
I am using PHP 4.0.6, on Windows ME+Apache 2.0.36.
The few successful cases correspond to servers in the same university.
What can explain this "sometimes-yes-sometimes-not" behavior?
Thanks in advance!