use stream_socket_client to retrieve 2 remote files at the same time

Posted by Hintswen on Stack Overflow See other posts from Stack Overflow or by Hintswen
Published on 2010-05-17T00:09:24Z Indexed on 2010/05/17 0:20 UTC
Read the original article Hit count: 701

Filed under:
|
|

I have a script in PHP which retrieves two very similar files and performs some tasks on the data then outputs a result. I'm currently using curl and getting one, processing it, then getting the other and processing it.

I want to switch to stream_socket_client as I've heard you can retrieve both files at the same time and do the processing once they have been retrieved but I am unsure how to do this.

© Stack Overflow or respective owner

Related posts about php

Related posts about php5