Re: get shell command output
| From: | Andy Hoffman | Date: | Thu, 05 Oct 2000 17:40:17 +0000 |
| Subject: | Re: get shell command output | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2958@lists.php.net to get a copy of this message | ||
Vince LaMonica wrote:
> On 2000-10-04, Pablo Vera stated:
>
> FWIW, the following code crashes apache 1.3.12 under NT4sp5 with php4.0.2
> via php4win.de running as a module.
Same here... well, not TOTALLY crash, as Apache was still running, but I did
get the error & the script didn't run...
But, nicely enough, the READDIR function (the code which got us started in
all this in the first place) does run under NT/Apache1.3.12/php4.0.2...
From the php manual on function readdir()...
<?php
$handle=opendir('.');
echo "Directory handle: $handle\n";
echo "Files:\n";
while (($file = readdir($handle))!==false) {
echo "$file\n";
}
closedir($handle);
?>
:)
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
email: andy.hoffman@bms.com