Re: LWP::Parallel in PHP

From: Date: Fri, 29 Aug 2003 01:28:00 +0000
Subject: Re: LWP::Parallel in PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-161095@lists.php.net to get a copy of this message
hi, David is right, you will not find an equivalent. My advise is to mix PHP and perl. You can get a perl script to handle the URL retrieval stuff and pass handlign back to php when you are done. It's this approach that i took when creating the mega upload progress bar for php. all the best David Otton wrote:
On Thu, 28 Aug 2003 20:25:05 +0300, you wrote:
I am looking for PHP analog of Perl LWP::Parallel. I need to fetch several URL(pages) from PHP at the same time. I have a script which fetch 5-10 URL, each URL fetched 0.5 - 2 sec. Totally it's about 10 seconds in average. I suppose if I fetched them parallel I would speed up the script 5 times. I am looking mostly for PHP solutions. (Hope they exist :)
Think you're out of luck. Yes, it's a problem I've run up against more than once. There's no thread support in PHP [4. Anyone know if it's in 5?]. I suppose you might be able to hack something together by spawning external processes, but... might as well just do it all externally then.
-- http://www.raditha.com/php/progress.php A progress bar for PHP file uploads.

« previous php.general (#161095) next »