Re: Need help with fsockopen()

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Need help with fsockopen()
Groups: php.general 
Request: Send a blank email to php-general+get-118901@lists.php.net to get a copy of this message
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 >

« previous php.general (#118901) next »