Is there a simple web based intelligent system like alarm or automatically shutting down pc within certain time? I am looking for an application that is PHP.
Web based system management software
Collapse
X
-
Hey.
Shutting down a computer via a web-based system (by which I mean; a browser based website) is not possible. At least not by using the website alone. You would need a 3rd party client-side language, like Java, to accomplish that.
Not sure what you mean by "alarm", but if you just mean a clock that beeps, or something like that, that shouldn't be a problem. Although, using PHP would be less than ideal. JavaScript would be a better language to use for such a thing. -
Well you can always tell the computer to shutdown but you can not tell PHP to shutdown the computer but you can execute system commands so...
Windows
Code:exec( "shutdown -s" );
Code:exec( "sudo shutdown -h 5" );
Comment
-
Well I don't see Windows or Linux being all "Okay stranger you can shut me down" lol. And yes that would be a pretty big problem but I figured he was using it on his development machine. If your trying to shutdown a different computer remote management is the only real option I can think of. If your on Windows you can always find the correct COM object for doing just that Linux well I'm sure there's some open source software that you can have PHP use.
EDIT:
If you are using a server and want to shutdown your client ( which you have complete access to ) use a socket server to have PHP send a message to at the correct time and then take your actions from there. Sockets in C are pretty easy to understand on Linux I've never written anything with sockets on Windows I'm sure its about the same but Windows uses there own sockets interface rather then the Unix socket "standard".Comment
Comment