I just finished my first multiplayer game and its doing fairly well, I had at most 485 simultaneous users off and playing with memory_usage() of about 2MB. The server side is PHP4, PHP5 wasn’t on my server (I also heard its unstable at the moment).
http://www.gamebrew.com/play-artillery-live
I’m testing the load and the server program crashes every 1-3 hours. But it sometimes could last much longer. I don’t know if it’s my bad programming or memory leaks, it doesn’t report any errors it just hangs. I configed “php.ini” and apache “httpd.conf” for some optimizing settings too.
My question, is PHP meant to be used as a game server like this? Does anyone else know of any successful multiplayer games that use PHP, how many users can it support and if my constant crashing is normal?
Thanks!