@felgallMar 27.2007 — #Sure it is possible provided that you can figure out a way to make the computer that you want to shut down fit into the electronic content of your web page. If it isn't part of your web page then you have no legal access.
@ZnupiMar 27.2007 — #If you want to shut down your own computer via a browser, you can do it server-side, for example in PHP: [code=php] exec("shutdown -s -t 00 -c PHP is shutting your computer down!"); // or simply... shutdown -s -t 00 -c PHP is shutting your computer down! [/code] You cannot go and shut down a user's computer just by calling a javascript function, that would be... uhm... a security breach... you'd have to make some sort of client-side trojan or whatever (there are some out there)...
@disgracianMar 27.2007 — #Well I asked why, because I can't think of a single non-malicious reason you could have to want to know how to do this. Can you offer one?
@felgallMar 27.2007 — #That PHP code would probably be disabled on shared hosting since rebooting a shared web host from within one of the sites hosted on it would not be acceptable. If it did somehow get to run the obvious response from the web hoast would be to delete the offending account for breach of their terms of service. The only situation where it could ever possibly work is on dedicated hosting where your site is the only one hosted on the computer where the only affect that you can have by rebooting is to make your own site unavailable for anyone to access until the computer finishes rebooting and all the necessary services to run the site are restarted. As there are plenty of things that can go wrong during that process it would be quicker and easier to get someone onsite at the data centre to manually reboot.
@LeeUMar 27.2007 — #O.k., since nilesh16782 doesn't give a good answer as to why (which I'm not sure there is one but for what Stan mentioned), this thread is closed.