I have a script that downloads html pages from many different sites. The script executes as expected but is sloooooooow. I would like to replace fopen() with fsockopen() so that I can set a time limit for the page downloads. Here is an example of how I'm using fopen():
$site_url="http://www.domainname.com/complete/path/to/the/page.htm";
$OpenFile = fopen("$site_url", 80);
$getFile = fread($OpenFile, 50000);
Simply put, how do I do the exact same thing as above with fsockopen().
Thanks,
Cliff