http://www.php.net/manual/en/function.fsockopen.php
Seems to be A LOT of useful information there? Did you check it out? -Brad > 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(): > > $OpenFile = fopen("$site_url", 80); //$site_url = > www.domainname.com/complete/path/to/the/page.htm > $getFile = fread($OpenFile, 50000); > > Simply put, how do I do the exact same thing as above with fsockopen(). > > Thanks, > Cliff > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php