quote:
Originally posted by Felu
while ($file = readdir($dir_handle)) !== false)
Two '(' were and and then you close 3? Mind explaining why?
Typo.
quote:
Originally posted by hmaster
And also what would !== false do
Try yours, place a file called "0" in the directory along with some others and watch yours exit on that.
0 is essentially false when doing standard == checking so you need to compare at the actual level which is ===. In that case, 0 != false, 0 = 0.