Running multiple threads

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have WAMP (PHP5/ Apache runnng on WinXP). I'm accessing the Google
and Yahoo APIs but this is usually very slow. How can I run multiple
processes at the same time? Is there some multi-threading in PHP5?

At the moment, I can't even access the same PHP file -- it will simply
wait for the old process to be finished. So I need to rename the file
-- bla2.php5, bla3.php5 and so on, and open multiple Firefoxes. There
must be a better way right?

Thanks for any help!
Google Blogoscoped

Re: Running multiple threads

You could use a frameset to load multiple pages in the same window. You
could also run multiple php commands in the background. Here's a
windows example of doing that:

Not sure why you can't make multiple requests to the same file using
different browsers though.

Philipp Lenssen wrote:
Quoted text here. Click to load it

Re: Running multiple threads wrote:

Quoted text here. Click to load it

To OP:

The reason he has to wait for the first request to finish is most probably  
caused by the use of sessions.
A script that uses a session must wait for ending of the execution of a  
former request to any script that uses the same session.

Erwin Moller

Site Timeline