note 60053 added to ref.curl

From: Date: Sat, 24 Dec 2005 04:39:05 +0000
Subject: note 60053 added to ref.curl
Groups: php.notes 
Request: Send a blank email to php-notes+get-100648@lists.php.net to get a copy of this message
In replay to trucex’s post, You are right in case if we will talk about simple script, like you mention. Now just imagine situation when you will need to create some kind of web based proxy (example gesoft.org)? Can it be done by using simple functions like file_get_contents? The answer will be positive, but at the same time don’t forget the time which will be spend to do the same job. Is it worth to spend more time? Now most important thing in which I will never agree, is it possible to execute more than 1000 threads at the same? Yes and here is an example of it. proxy-list.org. 1000 proxies are rechecked every 10 min. The difference between first proxy testing and last one could be easily calculated and it will be equal something about 46 seconds. It should be mentioned that this testing script not only executed and stopped but it has 30 seconds timeout!!! That means that script can not finish its work 30 seconds earlier. According my stats, if just simple web page will be opened by curl, there is possibility to execute up to 10k threads at the same time. One more important parameter is which amount of possible simultaneously threads can be executed depends directly proportionally on hosting quality! Such as, busyness, CPU, RAM, at list internet channel quality and speed. Regards and good luck in you work Vitali Simsive ---- Manual Page -- http://www.php.net/manual/en/ref.curl.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60053 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60053&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60053&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60053&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60053&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60053&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60053&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60053&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60053&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#100648) next »