note 10602 added to popen
| From: | krauss at openB2B dot com dot br | Date: | Fri, 12 Jan 2001 02:10:22 +0000 |
| Subject: | note 10602 added to popen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9684@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??
http://www.php.net/manual/function.popen.php