Differences between phpstream_socket_client and fsockopen: Some information is missing on the internet. if you do not understand it, please let me know.
Reply to discussion (solution)
Stream_socket_client and fsockopen are essentially different.
Socket is a toolkit that encapsulates TCP/IP operations.
Stream_socket_client and fsockopen belong to different genres of socket encapsulation.
It's like some people like to use the zf framework, while others like the tp framework.
If you don't like it, use the native php code directly, for example, using the socket function set directly.
Stream_socket_client and fsockopen are essentially different.
Socket is a toolkit that encapsulates TCP/IP operations.
Stream_socket_client and fsockopen belong to different genres of socket encapsulation.
It's like some people like to use the zf framework, while others like the tp framework.
If you don't like it, use the native php code directly, for example, using the socket function set directly.
I am not very familiar with this. does it mean stream_socket_client and fsockopen are both stream operations?
Stream_socket_client is a stream operation.
Fsockopen is a file operation.