RE: [PHP-WIN] why doesn´t exec("dir "); work ?
| From: | Boget, Chris | Date: | Thu, 15 Nov 2001 19:28:24 +0000 |
| Subject: | RE: [PHP-WIN] why doesn´t exec("dir "); work ? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-10438@lists.php.net to get a copy of this message | ||
> why can´t I run exec("dir"); ?
What you want is:
exec( "dir", $dirContents );
foreach( $dirEntry as $dirContents ) {
echo $dirEntry;
}
I believe that'll work and do what you want...
Chris