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.
Threads
Moderator: General Moderators
Threads
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.
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.
If all you need is to perform concurrent requests to remote resources, then curl_multi_* might be the solution you're looking for.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.*.