to traverse all files in a folder
with scandir and glob, only folders can be scanned, but no files can be scanned.
1> $path = "./upfiles/upload/3223/";
2> $list = scandir($path);
3> $list = glob($path."*");
to scan out files under / 3223 / folder, scandir returns false,glob and returns empty
. If you change the directory to / upload/, you can scan 3223 /
. This should indicate that php does not disable these two functions. Why can"t files be scanned?