Re: Re[6]: [PHP-WIN] get shell command output
| From: | Daniel Beulshausen | Date: | Sat, 07 Oct 2000 10:23:14 +0000 |
| Subject: | Re: Re[6]: [PHP-WIN] get shell command output | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3038@lists.php.net to get a copy of this message | ||
> } <?php
> }
> } $d =
dir;
> } $t = htmlentities($d); // Converts special chars to html tags.
> }
> } echo "<PRE>$t</PRE>";
> }
> } ?>
a dir command doesn't exist, it's interpreted by your command interpreter.
you'll have to do something
like
command /c dir
(win98)
or
cmd /c dir
(nt,win2k)
greetings
daniel
/*--
daniel beulshausen - daniel@php4win.de
using php on windows? http://www.php4win.de