PHP 5 Socket Server Question!

I went through this tutorial…

http://www.kirupa.com/developer/flash8/php5sockets_flash8.htm

A couple of weird things happened. First of all it worked perfectly… which doesn’t make sense because I only have PHP 4, not PHP 5. And also, I have no access to a command shell or a way to run a BAT file like it says in the tut.

The way I got it to run was by going to the file in the browser. Somehow this magically started the endless process that the socket server needed.

My question is, since I have no access to a command shell, how do I get the socket server to stop running? is there some kind of linux command line I can run through a php script?

thanks!