Posts Tagged ‘networking’

From simple socket reader to server in PHP

Saturday, October 24th, 2009

After I have pub­lished Sock­et­Server on PHPClasses.org, I received com­ments about some ugly places and ideas of improve­ment. So now, it can be used as a skel­eton for some­thing more inter­est­ing then “Hello, World!” sample. In this post I’ll guide you through mod­i­fied example.php step by step as in pre­vi­ous one but with new func­tions and improve­ment of Sock­et­Server in focus. So in fact it’s just an exten­sion of pre­vi­ous post.
(more…)

Socket reader in PHP. Second part

Thursday, October 22nd, 2009

In the pre­vi­ous post I have showed how to cre­ate a socket reader in php step by step. So by some strange tra­di­tion now I’m going to rep­res­ent OOP vari­ant. In fact, this is a sand­box ver­sion of new adapter for Chroot­G­ate­way. :)) But it can be used any­where, without any prob­lems.
(more…)

Socket reader in PHP

Sunday, October 18th, 2009

There are lots of art­icles which show you how to cre­ate a socket reader in PHP. You can find them on google. My start­ing points were art­icles on devshed and zend’s devzone. Unfor­tu­nately bring too few light on me. Although articale of icarus, © Mel­on­fire was my start point in under­stnd­ing how to write a socket reader. So now I can dig a little bit deeper…
(more…)