Power saving

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mirainc
    New Member
    • Jul 2008
    • 34

    Power saving

    is it possible to turn off the monitor on just the current PC? or PC in a network? Network as in the PCs connected by LAN. Coz my teacher wants a program that will shutdown, hibernate, shutdown hard disks and switch off monitors in the school network. But i really have no idea how to do that using PHP.. I'm new to PHP.. just learning it to do this project.. i managed to do a PC shutdown on my PC but i dunno how to do that on a LAN network..

    Anyone can offer some advise?
  • henryrhenryr
    New Member
    • Jun 2007
    • 103

    #2
    Originally posted by mirainc
    is it possible to turn off the monitor on just the current PC? or PC in a network? Network as in the PCs connected by LAN. Coz my teacher wants a program that will shutdown, hibernate, shutdown hard disks and switch off monitors in the school network. But i really have no idea how to do that using PHP.. I'm new to PHP.. just learning it to do this project.. i managed to do a PC shutdown on my PC but i dunno how to do that on a LAN network..

    Anyone can offer some advise?
    This isn't php...

    but according to help:

    Code:
    shutdown -m //computername
    for windows (ps you can see this help message by typing "shutdown -?" in command prompt).

    You could run this from PHP using exec.

    You can try PsExec to run commands on remote machines. Again you would need to work out the correct command and then insert it into the exec() function to control this action through PHP.

    http://technet.microsoft.com/en-us/s.../bb897553.aspx - PsExec.

    I found this after a quick search in about 2 minutes. You could try searching before posting...

    Comment

    • mirainc
      New Member
      • Jul 2008
      • 34

      #3
      i found tat too but i do not want to install something else to achieve the results i want.

      Comment

      Working...