Is it possible to dynamically reload PHP code while script is running?
问题 I'm having a multiplayer server that's using PHPSockets, and thus is written entirely in PHP. Currently, whenever I'm making any changes to the PHP server-script I have to kill the script and then start it over again. This means that any users online is disconnected (normally not a problem because there aren't so many at the moment). Now I am rewriting the server-script to use custom PHP classes and sorten things up a little bit (you don't want to know how nasty it looks today). Today I was