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.
[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
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 following:
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()
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;317371sd=tech
If you on windows xp or 2003 servers I'm not sure how this will work
now that
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 message:
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
Hello Joseph,
Wednesday, August 10, 2005, 3:26:05 PM, you wrote:
JO First off, windows has no clue what a fork is,
A fork is several different things, and there's no reason why Windows
cannot implement a fork via its standard APIs.
JO much less the command 'shutdown -r -t 01'.
-r = Shutdown
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
Richard, thanks for the pointer on the shutdown command, nice to see them
implement that in 2k3 and XP, I don't use them on a regular base and sure
don't use them in server environment.
As for the fork, windows can't preform a fork of a process. There are API's
out there that can do this for
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
On Wed, August 10, 2005 7:45 am, Richard Davey wrote:
Hello Joseph,
Wednesday, August 10, 2005, 3:26:05 PM, you wrote:
JO much less the command 'shutdown -r -t 01'.
-r = Shutdown with restart
-t = Set the timeout for shutdown (xx seconds)
01 = The timeout value
Open a command prompt,
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:
Hello Richard,
Wednesday, August 10, 2005, 9:40:02 PM, you wrote:
RL I dunno if YOUR Windows box has some cygwin thingie or something
RL that makes shutdown be a real command, or if it's just a
RL versioning issue, but the single test platform I had available
RL pretty much had no shutdown
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.exe to
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
16 matches
Mail list logo