By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,077 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,077 IT Pros & Developers. It's quick & easy.

Running multiple threads

P: n/a
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!
Philipp
--
Google Blogoscoped
http://blog.outer-court.com

Oct 5 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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:

http://www.zend.com/codex.php?id=1410&single=1

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

Philipp Lenssen wrote:
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!
Philipp
--
Google Blogoscoped
http://blog.outer-court.com
Oct 5 '06 #2

P: n/a
pe*******@gmail.com wrote:
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:

http://www.zend.com/codex.php?id=1410&single=1

Not sure why you can't make multiple requests to the same file using
different browsers though.
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.
Regards,
Erwin Moller
Oct 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.