Shutdown pc
#457
Replies: 1 comment 1 reply
-
I'm not familiar with Windows, but a quick Google suggests this can be done from the command line with So you may be able to wrap this in a if (PHP_OS_FAMILY === 'Windows') {
shell_exec('shutdown /s');
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, How can I shut down Windows with a button in nativephp?
Beta Was this translation helpful? Give feedback.
All reactions