View Single Post
  #3 (permalink)  
Old Apr 2nd, 2008, 08:32
djeyewater djeyewater is offline
Junior Member
Join Date: Oct 2007
Location: UK
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Directory listing using PHP

Cool, thanks for checking it. The only reason I can see for using
PHP: Select all

while(false !== ($file readdir($handle))) 

is so it would work if you have a directory or file named 0 (since 0 evaluates to false but is not identical to false).
Reply With Quote