Hi,
I have a piece of code on one server that tries to open a file on another server.
I define the handle as:
$checklastserverlistupdate=fopen ("http://www.example.com/xxxxxxxx/yyyyyyy/serverlistupdated.php", "rb");
Annoyingly, when I execute the script, sometimes it makes the connection, but usually I get a ...failed to open stream: HTTP request failed! HTTP/1.1 404 in... error.
The file in example.com is available and can be reached on a browser. Any ideas on why this happens? Could it be that the path or filename is too long?
Any suggestions are welcome.
Thanks.