Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Developing an Extensible TCP Server with Sockets in PHP
May 30, 2006 @ 17:58:33

Devshed has posted part two in their series of "handling sockets in PHP", this time, with a focus on the creation of a TCP server.

Are you interested in learning how to manipulate low-level sockets in PHP? Your search has finished. This is the second part of the series “Handling sockets in PHP,” and hopefully you’ll find in it valuable material regarding the creation and manipulation of sockets with PHP, in conjunction with numerous illustrative hands-on examples that will help you build socket servers in a few easy steps.

The tutorial walks you through the simple process, looking back at the simple version they made before, looking forward at expaning it to handle multiple client requests, and creating a "socket server" class to automatically handle the creation of the socket.

tagged: sockets tutorial tcp server extensible part2 sockets tutorial tcp server extensible part2