I am writing a simple php socket code.
Here is my code
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.