Re: get shell command output

From: Date: Thu, 05 Oct 2000 22:35:39 +0000
Subject: Re: get shell command output
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-2962@lists.php.net to get a copy of this message
On 2000-10-05, Andy Hoffman stated: Andy, et al, } 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... I was stuck in an endless loop, as Opera 4.0.2 wanted to keep trying to load the page, each time I closed the Dr. Watson dialog box. Had to click on 'stop' on Opera to stop the loop. } 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... Aaaah...I think I need to read this group via nntp, as I miss about 50% of the posts [i use the phpbuilder.com archives to try and keep up, since mail to here is so bad - ezmlm's warning messages appear almost as much as normal list traffic!] } <?php } $handle=opendir('.'); } echo "Directory handle: $handle\n"; } echo "Files:\n"; } while (($file = readdir($handle))!==false) { } echo "$file\n"; } } } closedir($handle); } ?> Cool - that works great [well, if you replace \n with a <BR> at the last 'echo', otherwise Opera forgets about any linefeeds]. /vjl/

« previous php.windows (#2962) next »