|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-09 07:03 UTC] dave@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 22:00:01 2025 UTC |
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