socket connection code of php

前端 未结 2 874
孤城傲影
孤城傲影 2020-12-29 17:45

I am writing a simple php socket code.
Here is my code

 

        
2条回答
  •  有刺的猬
    2020-12-29 18:17

    I verified the code and tested in my system and it works correctly. Showing as "client is here" after running the client.

    File Name: server.php

    
    

    First run the server.php file.

    File: client.php

    
    

    Now run the client.php

    Your output should be like this (as I got in my system)

    I am hereclient is here

    If not, make sure your firewall is not blocking the request. Temporarily disable antivirus if you have one.

提交回复
热议问题