Running multiple threads

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Philipp Lenssen

    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
    A daily news blog and community covering Google, search, and technology.


  • petersprc@gmail.com

    #2
    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:
    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

    Comment

    • Erwin Moller

      #3
      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:
      >

      >
      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

      Comment

      Working...