View Single Post
Old 11-17-2010, 09:12 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

See example #2 in the manual (http://php.net/readdir) for how to strip the "dot files". As for why they're there at all, they are standard items in directory listings which represent the current (.) and parent (..) folders (see http://en.wikipedia.org/wiki/Path_(computing)).
Salathe is offline  
Reply With Quote