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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |