Re: Exec()
| From: | Helmut Himmelstoss | Date: | Wed, 11 Apr 2001 16:50:06 +0000 |
| Subject: | Re: Exec() | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6638@lists.php.net to get a copy of this message | ||
I copied the Program Ping.exe to the same directory as my script and the
User the IUSR_[Machine name] hast the permissions.
<?php
echo"<pre>";
$dd=system("ping ping 127.0.0.1");
echo "$dd ;;this is a system-test";
echo "<hr>";
?>
The result is the same.......... no result:
;;this is a system-test
"Olivier Hubert" <olivier.hubert@mail.transc.com> schrieb im Newsbeitrag
news:4.1.20010411122325.0099ef00@colvir.net...
> At 18:03 2001-04-11 +0200, Helmut Himmelstoss wrote:
> >it did'nt works. I get no result. I work in CGI Mode under WinNT and IIS5
>
> Did you check the permissions for ping.exe? Does the IUSR_[Machine name]
or
> whatever user executes PHP.exe have the rights to read/execute ping.exe?
> Very often, anonymous users will NOT be granted rights to the
> %SYSTEMROOT%\winnt directory, to prevent security leaks and DoS attacks.
>
> Olivier
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>