Hi All
The important thing to note here is that PHP is a server-side language, so commands that affect the system are executed on the server, not the client.
Anything you want to automate on the client-side is best done with JavaScript, but even that alone will not do what you are asking. You would need to call a shell command to carry out the required functions.
If the OP is doing this for a legit reason, he should be able to set this up with no problem (the permissions will need changing on the client computer).
This is not the place to discuss the correct shell commands to complete these functions, but anyone trying to do this sort of thing (in particular, put the monitor into standby from the shell) should take a look at
NirCmd, a great little command line utility for windows that adds a lot of increased functionallity to Windows commands, without needing to install the PowerShell. It can also send commands to remote machines.
DvR (Chris)