get shell command output
| From: | Alexander Alexeev | Date: | Tue, 03 Oct 2000 15:34:05 +0000 |
| Subject: | get shell command output | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-2918@lists.php.net to get a copy of this message | ||
php4/winnt40/apache1.3.9
I can't get shell command output
When I try ...
<?
$t = system("dir");
echo "<pre>$t</pre>;
?>
... or ...
<?
$t =
dir;
echo "<pre>$t</pre>;
?>
... I get empty html.
but when i try ...
<?
$t = dir>d:\1.txt;
echo "<pre>$t</pre>;
?>
... i get d:\1.txt
How can't I get shell command output???