Threads

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Pinkie
Forum Newbie
Posts: 2
Joined: Mon Aug 21, 2006 3:05 pm

Threads

Post by Pinkie »

Hi,

This is my first post so apologies if it's in the wrong forum. Also, I have searched high and low and cannot find the answer so thought I'd be bold and ask.

I'm programming a website that searches multiple remote databases - using XML and SOAP mainly. At the moment each search is performed sequentially which takes a fairly long time. I would like to know if PHP supports threads, so that I can run the searches concurrently. The website is running under Linux and Apache. I'm using PHP version 5.*.

If PHP doesn't support threads, can anyone suggest an alternative way to speed up the searches.

Thanks in advance.

Chris.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

This was recently asked (and answered.) Your searching skill needs tuning. ;)

viewtopic.php?t=53688
Pinkie
Forum Newbie
Posts: 2
Joined: Mon Aug 21, 2006 3:05 pm

Threads

Post by Pinkie »

Thanks for the response.

I think you're right about the research!! Must try harder next time.

I sort of guessed the answer but wasn't sure. I would still like to find ways of speeding up the searching on the website. I'll go away and do some more research but in the meantime if anyone can point me in the right direction or offer tips that would be appreciated.

Chris.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The thread has a few alternatives listed later on in it.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

I'm programming a website that searches multiple remote databases - using XML and SOAP mainly. At the moment each search is performed sequentially which takes a fairly long time. I would like to know if PHP supports threads, so that I can run the searches concurrently. The website is running under Linux and Apache. I'm using PHP version 5.*.
If all you need is to perform concurrent requests to remote resources, then curl_multi_* might be the solution you're looking for.
Post Reply