After I have published SocketServer on PHPClasses.org, I received comments about some ugly places and ideas of improvement. So now, it can be used as a skeleton for something more interesting then “Hello, World!” sample. In this post I’ll guide you through modified example.php step by step as in previous one but with new functions and improvement of SocketServer in focus. So in fact it’s just an extension of previous post.
(more…)
Posts Tagged ‘socket’
From simple socket reader to server in PHP
Saturday, October 24th, 2009Socket reader in PHP. Second part
Thursday, October 22nd, 2009In the previous post I have showed how to create a socket reader in php step by step. So by some strange tradition now I’m going to represent OOP variant. In fact, this is a sandbox version of new adapter for ChrootGateway. :)) But it can be used anywhere, without any problems.
(more…)
Socket reader in PHP
Sunday, October 18th, 2009There are lots of articles which show you how to create a socket reader in PHP. You can find them on google. My starting points were articles on devshed and zend’s devzone. Unfortunately bring too few light on me. Although articale of icarus, © Melonfire was my start point in understnding how to write a socket reader. So now I can dig a little bit deeper…
(more…)