Hi -
I am trying to "spider" a handfull of web pages in an array into my php page.
Using the following code, it sometime works fine but more often than not, it gets so far and won't complete its run. Is there any way I can get it to skip a 'problem' url either by perhaps timing out or by some other means.
##
$urlfilename = "http://www.foo.com/index.htm";
##
function load_url_file($urlfilename){
$fp = fopen("$urlfilename","r");
$contents = fread($fp2,1000000);
fclose($fp2);
}
##
Thanks for your help.
Clownfish