Jump to content

Archived

This topic is now archived and is closed to further replies.

Anidazen

Is this possible within PHP? If not - what technology do I need?

Recommended Posts

I provide a service that involves looking up 10+ websites and parsing them in real time.

I really can't wait for 10 sites to load one after the other. Is it possible to load all 10 at once with PHP, or is that beyond the boundaries of what can be achieved?

If it *is* beyond PHP's capability, what language/technology would I need to use?

Share this post


Link to post
Share on other sites
[quote]
I provide a service that involves looking up 10+ websites and parsing them in real time.
[/quote]

how are you doing it know please provide an example as there meny ways.

Share this post


Link to post
Share on other sites
[quote author=redarrow link=topic=108392.msg436041#msg436041 date=1158504815]
how are you doing it know please provide an example as there meny ways.
[/quote]

I am going to each site, opening a CURL connection, retrieving the site, and then parsing it.

Share this post


Link to post
Share on other sites
You can't do more than one thing at a time, that goes for all the other languages as well.

Share this post


Link to post
Share on other sites
[quote author=Daniel0 link=topic=108392.msg436055#msg436055 date=1158505997]
You can't do more than one thing at a time, that goes for all the other languages as well.
[/quote]

Surely there must be some method. My desktop computer can look up 200 websites simultaneously.

There's absolutely no technology that can avoid the script stopping and standing around waiting for each and every site?

Share this post


Link to post
Share on other sites
My only advice would be to find some way of caching the sites, unless they are being updated very quickly and you have to have the latest info from them.  Then you can just recache them every few hours or something along those lines. 

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.