Hi all, I'm in the early phase of making a very simple php socket server, which runs on a linux box. The basic idea is to create a master socket and enter a persistent while(true) loop to continuously handle incoming socket messages.
When I run the server using putty (php -q socket_server.php), it prints out all the debug messages, serves some client socket connections, everything goes fine. Somehow, after some time, the program just terminated all by itself. I mean, I couldn't track the process ID from ps -aux either. By the way, I have set_time_limit(0); to make sure the program never timeout. I am just so wondering why this thing happens. Any idea?
Thanks in advanced.