I have a script in PHP that retrieves two very similar files and does some work on data, then a Results give results. I am currently using curls, processing one, achieving the second and processing it.
I want to switch to stream_socket_client because I have heard that you can get both files at the same time and do so once they are processing, but I am uncertain how to do it .
Basically, you open both chairs, call stream_set_blocking with the flag, and you call in a loop until both the streams reach the EOF.
Comments
Post a Comment