Bluehost.com Web Hosting $6.95

Running multiple threads

This is a discussion on Running multiple threads within the PHP Language forums, part of the PHP Programming Forums category; I have WAMP (PHP5/ Apache runnng on WinXP). I'm accessing the Google and Yahoo APIs but this is usually ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-05-2006
Philipp Lenssen
 
Posts: n/a
Default Running multiple threads

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

Reply With Quote
  #2 (permalink)  
Old 10-05-2006
petersprc@gmail.com
 
Posts: n/a
Default 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:

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


Reply With Quote
  #3 (permalink)  
Old 10-06-2006
Erwin Moller
 
Posts: n/a
Default Re: Running multiple threads

petersprc@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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0