Page 1 of 1

multithreaded programming or asynchronous HTTP request

Posted: Mon Nov 20, 2006 5:49 am
by amir
Hi,

I'm working on a website, which sends two HTTP requests to other servers. The data sent is logging data, so I don't need to process the HTTP response necessarily.

Is it possible to create a seperate thread in PHP for those HTTP requests?

Or is it possible to send the HTTP requests asynchronously?

As already mentioned, its not necessary to process the HTTP response, but it would be nice if it was possible.

Thanks a lot!

Posted: Mon Nov 20, 2006 2:44 pm
by feyd
You could just send the request headers and move on.... fsockopen() would be used here, or cURL.

proc_open() could be of interest too, but I wouldn't recommend it.