I've been confused with the concept which descriped in php.net for the function is_dir(),it says
Tells whether the given filename is a directory
(1)It checks whether the given parameter is a directory or not,when I give it a path,it returns true on success,but it uses the term given filename,if I know it is filename(file returns false),why would I bothering checking it in the first place?
(2)Here comes the spot where I've been confused of,readdir returns the files resides inside the given folder,it returns the file names but also returns single dot and double dots while I looping the opendir(),so,what exactly does the dots means in the return value?