This can be done using the exec() function, the doc will explain how
it work.  There are a few known problem as I can see if someone try to
reboot the Linux/Unix.

    1) If the hacker break-in and take control of hte script.  Who know what
could have happen.

    2) If using encryption and use passphrase to start up Apache, it is a
darn problem getting the passphrase be entered automatically.

    3) If people are online to that one website and the machine reboot,
everyone would get cut off of that website.


"John S. Huggins" <[EMAIL PROTECTED]> wrote in message
On Thu, 18 Jul 2002, Harpreet Kaur wrote:

>-Can we reboot a linux server using a php page?


>-And is it recommended?


>-Harpreet Kaur
>-Join the world's largest e-mail service with MSN Hotmail.
>-PHP General Mailing List (
>-To unsubscribe, visit:


John Huggins



PHP General Mailing List (
To unsubscribe, visit:

Reply via email to