Page 1 of 1

Threads

Posted: Mon Aug 21, 2006 3:15 pm
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.

Posted: Mon Aug 21, 2006 3:23 pm
by feyd
This was recently asked (and answered.) Your searching skill needs tuning. ;)

viewtopic.php?t=53688

Threads

Posted: Mon Aug 21, 2006 3:35 pm
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.

Posted: Mon Aug 21, 2006 3:40 pm
by feyd
The thread has a few alternatives listed later on in it.

Posted: Mon Aug 21, 2006 3:46 pm
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.