hey everybody (especially you socket pros)!
i'm working on a super simple, general purpose php socket server to talk to flash clients. i'm hoping to make it rather generic so i can create modules to implement different multiplayer online games.
i have it working, thanks to this very helpful page, but I want to improve it. questions:
1) what does this do? it appears in the PHP file from Mr. Staub.
#!/usr/local/bin/php –q
2) What is the best way to open my php socket server? This tutorial suggests running the php file from a command line but seems to me I'd have to keep the window open which might not be so bad because I could keep an eye on it but I'm thinking I need something more self-sufficient.
Is there some kind of proper approach that can open a socket server from a browser if it hasn't been opened yet...and if it HAS been opened already, it won't try to open again or screw it up? Seems to me it would make sense to perform this in the page that hosts my client (which is going to be Flash).
Any help would be much appreciated. I expect I'll have more questions after this.