First thing first! Open up the terminal and log in. Then type the command,
if the machine doesn't reboot or if you got an error message, it meant the
command is not correct. Once you get the correct command then use it in
PHP. It's much simplier that way. If PHP can't reboot the machine then
Is it `reboot -n` ??
Harpreet Kaur wrote:
> I am using the below command in the php page to reboot the linux server.
> But nothing happens . Where am i wrong or do i have to give a path or
> nething . Please help.
>
>
> $output = shell_exec(`reboot`);
> echo $output;
>
>
>
> __
2 matches
Mail list logo