MadFly Posted May 3, 2012 Share Posted May 3, 2012 (edited) I have a windows 7 ultimate(x64) machine, on which I have installed wamp, running a small website for the game which the server is "hosting". I am wondering if anyone here perhaps know of a way to restart the whole server with a button on a php page. So far my searches has only come up with ways to restart PHP and IIS Services(not using IIS at all, and certain settings only take effect after a complete restart), but I would like to be able to reboot the complete server, as if you clicked on start and then restart. The other plan is to at a very later stage, keep the game server windows based, and move the website side of it to a ubuntu webserver. But thats very far down the line Any ideas? Edited May 3, 2012 by MadFly Link to comment Share on other sites More sharing options...
justsomeguy Posted May 3, 2012 Share Posted May 3, 2012 Here's the list of options you can use with the shutdown command: http://www.windows-commandline.com/2009/04/reboot-computer-from-command-line.html PHP can send system calls with functions like exec, passthru, proc_open, etc. Link to comment Share on other sites More sharing options...
MadFly Posted May 3, 2012 Author Share Posted May 3, 2012 Excellent!thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now