I have this code:
<?php
system('shutdown -s');
?>
It works just fine, shuts down my localhost and everything. But this doesn't lock the computer:
<?php
system('Rundll32.exe System32\User32.dll,LockWorkStation');
?>
Why doesn't it work?
I have this code:
<?php
system('shutdown -s');
?>
It works just fine, shuts down my localhost and everything. But this doesn't lock the computer:
<?php
system('Rundll32.exe System32\User32.dll,LockWorkStation');
?>
Why doesn't it work?
The web server isn't running in the user session, and so has no ability to lock it.