Hi,
When I used readdir() function and echo the file name it prints . and .. as well.Whereas there is no such file with name . or.. , so why it is printing it. What does it mean? And one more thing why we should loop over directory like
while(false!==( $file=readdir($ direname)))
why not like this
while($filename =readdir($dirna me))
Thanks
When I used readdir() function and echo the file name it prints . and .. as well.Whereas there is no such file with name . or.. , so why it is printing it. What does it mean? And one more thing why we should loop over directory like
while(false!==( $file=readdir($ direname)))
why not like this
while($filename =readdir($dirna me))
Thanks
Comment