Read the manual, not too clear stream_socket_xxxx and socket_xxx have what connection
For example: Stream_socket_recvfrom and Socket_recvfrom are functionally the same except for different parameters
Is it possible to understand that one is another extension?
For example: Stream_socket_client and socket_create seem to be able to create socket resources, and the stream is a bit more powerful
Younger brother White hand, do not understand just want to ask.
PS: Suddenly see a fsocketopen, how the socket variant so many?
Reply content:
Read the manual, not too clear stream_socket_xxxx and socket_xxx have what connection
For example: Stream_socket_recvfrom and Socket_recvfrom are functionally the same except for different parameters
Is it possible to understand that one is another extension?
For example: Stream_socket_client and socket_create seem to be able to create socket resources, and the stream is a bit more powerful
Younger brother White hand, do not understand just want to ask.
PS: Suddenly see a fsocketopen, how the socket variant so many?
Stream_socket_xxxx is the encapsulation of some functions, such as sockets.
Supported protocols more
http://php.net/manual/zh/wrappers.php
Almost the content
Put an answer.
http://stackoverflow.com/questions/9760548/php-sockets-vs-streams/9783856#9783856
It is recommended to use the stream_* function anyway