A
Anonymous
Guest
Hi,
I've written a PHP script which grabs data from a webpage to store on my webserver. This script works for fine except for one particular url where is takes around 3-5 minutes to execute (on occasions it times out).
The code which is causing the delay is:
$remotefilehandle = fopen($remotefile,"r")
where $remotefile is "http://www.betbrain.com/front.jsp?site=9"
If you put this url in a browser, the page displays in a couple of seconds, so why does fopen() take up to 5 minutes?
I've written a PHP script which grabs data from a webpage to store on my webserver. This script works for fine except for one particular url where is takes around 3-5 minutes to execute (on occasions it times out).
The code which is causing the delay is:
$remotefilehandle = fopen($remotefile,"r")
where $remotefile is "http://www.betbrain.com/front.jsp?site=9"
If you put this url in a browser, the page displays in a couple of seconds, so why does fopen() take up to 5 minutes?