Re: [PHP] Restarting windows from php

2005-08-10 Thread Jochem Maas
Richard Lynch wrote: On Wed, August 10, 2005 7:05 am, Karl-Heinz Christian Zeck wrote: Does anyone have any idea how to restart windows from a php script? ... SSL, password protected, maybe even have the script record a time-stamp when it's run, and refuse to run itself more often than 3

Re: [PHP] Restarting windows from php

2005-08-10 Thread Tyler Kiley
> 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.:) On windows, php uses cmd.e

Re: [PHP] Restarting windows from php

2005-08-10 Thread Richard Lynch
On Wed, August 10, 2005 7:05 am, Karl-Heinz Christian Zeck wrote: > Does anyone have any idea how to restart windows from a php script? You could send it the various hacks such as Ping of Death ranging up to current Microsoft Windows bugs from any remote computers :-) > I tried the following: >

Re: [PHP] Restarting windows from php

2005-08-10 Thread Stut
Karl-Heinz Christian Zeck wrote: 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]. There are a c

RE: [PHP] Restarting windows from php

2005-08-10 Thread George Pitcher
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 h

RE: [PHP] Restarting windows from php

2005-08-10 Thread tg-php
Could be that he's trying to use PHP to restart the server. Or could be using php via command line or through a system like GTK or Winbinder. It's worth noting that you should make sure you're restarting the machine you think you are, but the question still remains... is this possible and how

Re: [PHP] Restarting windows from php

2005-08-10 Thread Richard Davey
Hello Karl-Heinz, Wednesday, August 10, 2005, 3:05:32 PM, you wrote: KHCZ> Does anyone have any idea how to restart windows from a php script? KHCZ> I tried the following: KHCZ> exec('SHUTDOWN -r -t 01'); KHCZ> or KHCZ> exec('SHUTDOWN /r'); KHCZ> I received the following warning messag

Re: [PHP] Restarting windows from php

2005-08-10 Thread Joseph Oaks
First off, windows has no clue what a fork is, much less the command 'shutdown -r -t 01'. You can get a windows based version here for windows 2000, http://support.microsoft.com/default.aspx?scid=kb;en-us;317371&sd=tech If you on windows xp or 2003 servers I'm not sure how this will work now that

Re: [PHP] Restarting windows from php

2005-08-10 Thread Cafer Şimşek
Hi, I think, Karl says that to how to shutdown the server. This is posible with rundll, or using Win32API functions. This is the detailed information about how to use Win32API functions in PHP: http://www.php.net/manual/en/ref.w32api.php So, also this is an information about ExitWindows() API

Re: [PHP] Restarting windows from php

2005-08-10 Thread Karl-Heinz Christian Zeck
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 <[EMAIL PROTECTED]> wrote: > [snip] > Does anyone have any idea how to restart windows from a php script? > I tried the followin

RE: [PHP] Restarting windows from php

2005-08-10 Thread Jay Blanchard
[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