note 10602 rejected and deleted from popen by zak
| From: | zak@php.net | Date: | Fri, 12 Jan 2001 02:13:43 +0000 |
| Subject: | note 10602 rejected and deleted from popen by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9685@lists.php.net to get a copy of this message | ||
I am using win2000,
$cmd = "cmd /c dir";
print "<br> - - - $cmd - - - - -";
$fp = popen ($cmd, "r");
$data="";
while ($buff = fread($fp, 4096))
$data .= $buff;
pclose ($fp);
print "-- $data --";
dont produce a $data result,
BUT
exec("cmd /c del "$file"");
is fine...
then the cmd is ok,
what the problem whith stdout in NT??