Linked-in profile Github profile Twitter profile Curriculum vitae
Categories: PHP Projects
Created
20th April 2017
Modified
9th February 2022

A simple PHP socket server which doesn’t require process forking.

Comes with a few basic commands, feel free to use from GitHub.

Trawling through sold old project files, I came across a PHP socket server a wrote in 2014. I thought I’d post the code here if anyone was looking to work on a similar project. Source code on GitHub.

The script loops through all clients waiting for input to handle, clients can connect using a Telnet console. Defaults to listen on all interfaces over port 2014. This can be changed in the index.php by editing the following code:

Server::start( '0.0.0.0', 2014 );

It currently has the following commands available to connected clients:

Leave a Reply

Your email address will not be published. Required fields are marked *