multi-threading with PHP? or what?

Discussion in 'PHP' started by pinkstor, Aug 5, 2007.

  1. #1
    At least I think that's how to do this... I'm building a page that uses curl to get a response from a bunch of other webpages, say 20 or so. I want the resulting page to do something like what happens at digpagerank.com. The page is built, then inside a table each row separately goes out, gets what it needs, and displays the result. In the meantime, it show a little message - like the "digging data" one at digpagerank.com. So, how do I do that? I have curl working just fine, but it's slow. I'm getting multi-threading working, but I'm not sure how to a) get the page to display before curl starts, and b) get an image to display while I'm getting the page info.

    Ideas? Am I going about this wrong?
     
    pinkstor, Aug 5, 2007 IP
  2. Greg Carnegie

    Greg Carnegie Peon

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    He uses AJAX for this, I think he creates new AJAX request for each data he wishes to digg.
     
    Greg Carnegie, Aug 6, 2007 IP
  3. gibex

    gibex Active Member

    Messages:
    1,060
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    95
    #3
    gibex, Aug 6, 2007 IP
  4. pinkstor

    pinkstor Active Member

    Messages:
    93
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    75
    #4
    Cool, thanks guys!
     
    pinkstor, Aug 6, 2007 IP