RE: [PHP] Restarting windows from php

From: Date: Wed, 10 Aug 2005 14:08:31 +0000
Subject: RE: [PHP] Restarting windows from php
Groups: php.general 
Request: Send a blank email to php-general+get-220330@lists.php.net to get a copy of this message
[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.

« previous php.general (#220330) next »