#32243 [NEW]: i am trying to search a dir

From: Date: Wed, 09 Mar 2005 04:57:53 +0000
Subject: #32243 [NEW]: i am trying to search a dir
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-27643@lists.php.net to get a copy of this message
From: darkjedi3 at gmail dot com Operating system: windows xp PHP version: Irrelevant PHP Bug Type: Website problem Bug description: i am trying to search a dir Description: ------------ im am trying to search a dir, then spit out the files or whatever. i might not be able to search the dir though. Reproduce code: --------------- <? //this script searchs C print("<html>Files in C:\<br><br>"); $filesInC = scandir("C:\"); $numOfFilesInC = count($filesInC); $i = 0; while($i<$numOfFilesInC) { print("$i. $filesInC[$i]<br>"); $i++; } print("</html>"); //done ?> Expected result: ---------------- Files in C:\ hello.txt randomfile.htm randomfile.whatever windows documents and settings program files Actual result: -------------- Parse error: parse error, unexpected T_VARIABLE in /drive2/fpgshttpd/darkjedi3/Anti-Virus/open.php on line 9 -- Edit bug report at http://bugs.php.net/?id=32243&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32243&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32243&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32243&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32243&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32243&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32243&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32243&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32243&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32243&r=support Expected behavior: http://bugs.php.net/fix.php?id=32243&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32243&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32243&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32243&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32243&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32243&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32243&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32243&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32243&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32243&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32243&r=mysqlcfg

« previous php.mirrors (#27643) next »