RE: [PHP-WIN] Ping from PHP with shell_exec comando in IIS 5 and windows XP
| From: | HKG) | Date: | Fri, 14 May 2004 10:25:48 +0000 |
| Subject: | RE: [PHP-WIN] Ping from PHP with shell_exec comando in IIS 5 and windows XP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-23731@lists.php.net to get a copy of this message | ||
From a security point of view, that is /not/ recommended to do - then you
have no controll about who is executing or when execution is done.
A more controlled way to grant execute access to cmd.exe is to let IIS
execute the script as a certain user, and then let that user have the right
to execute whatever command is needed.
When it comes to security, allways think in terms
of restricting access on "need to know" basis.
-----Original Message-----
From: christian astrup bakke // chasm(.nu)
To: php-windows@lists.php.net; hdl@adinet.com.uy
Sent: 14-5-2004 12:02
Subject: RE: [PHP-WIN] Ping from PHP with shell_exec comando in IIS 5
and windows XP
this is probably a shot in the dark, but i've been able to use ping,
nslookup etc. through php by changing/giving the right permissions on
the file cmd.exe ... on iis 6.0 (windows 2003 server). give the
iusr_<machine> (or something similar) the appropriate/suitable permissions.
my best guess at this stage. :)