Web based system management software

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syadz
    New Member
    • Mar 2010
    • 2

    Web based system management software

    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.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    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.

    Comment

    • philipwayne
      New Member
      • Mar 2010
      • 50

      #3
      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" );
      Linux
      Code:
      exec( "sudo shutdown -h 5" );

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Of course that will shutdown the box that PHP is running on. Unless this application is running on the client box, then I doubt this is the way to go (shutting down a web-server could be a problem :P)

        Comment

        • philipwayne
          New Member
          • Mar 2010
          • 50

          #5
          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".
          Last edited by philipwayne; Mar 15 '10, 10:30 PM. Reason: Adding information.

          Comment

          • syadz
            New Member
            • Mar 2010
            • 2

            #6
            thank you so much guys for your explanation.rea lly appreciate that!

            Comment

            Working...