Just out of interest, how is the restart going to authenticate itself to get
up and running?

I used to do something like this between two servers - but the were Macs and
I was using Frontier and it did work, but not without the odd mishap.

If you just want to do it remotely (without recourse to PHP), look at VNC.

George

> -----Original Message-----
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]
> Sent: 10 August 2005 3:09 pm
> To: Karl-Heinz Christian Zeck; php-general@lists.php.net
> Subject: RE: [PHP] Restarting windows from php
>
>
> [snip]
> Does anyone have any idea how to restart windows from a php script?
> I tried the following:
>      exec('SHUTDOWN -r -t 01');
> or
>      exec('SHUTDOWN /r');
>
> I received the following warning message:  Warning: exec(): Unable to
> fork [SHUTDOWN -r -t 01].
>
> I never used this kind of functions before. What's wrong? In IIS for
> "Execute Permissions" I have "Scripts and Executables". What
> permissions should I set for the Internet Guest Account? Or something
> else caused the problem, not the permissions? Please help me.:)
> [/snip]
>
> Everyone, repeat after me......
>
> PHP is server-side, there's no place like home,
> PHP is server-side, there's no place like home,
> PHP is server-side, there's no place like home......
>
> If you are trying to restart Windows, locally, you have to use something
> client-side to affect that.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to