2003/2/24 01:12下午
The user annotation above it not correct: one should really use 'identical' to check for FALSE, as a directory may be named FALSE as well...
Thus:
while ($file = readdir($handle))
should read
while (false !== ($file = readdir($handle)))