Re: Restarting windows from php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't want to restart windows locally, I want to restart it
remotely. I need a php script that restarts the server. Is this
possible or not?


On 8/10/05, Jay Blanchard <jay.blanchard@xxxxxxxxxxxxxxxxxxxxx> wrote:
> [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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux