[Original Address:https://blog.ti-node.com/blog …] To better understand socket programming, there is a link that cannot be bypassed is io.In Linux, everything is a file. What do you actually want files for? Isn’t it just reading and writing? Therefore, the essence of this sentence is “IO is king”. Use php fopen to open files and close files ..