In this doc page i see things for to hide hidden files (also for opendir() or readdir() .... this should be mentiond all there
<?php
if ($file == '.' || $file == '..') {
continue;
?>
or
<?php
if $name[0] === '.' ?>
Think:
"... and then came Polly.avi" is the title of the Movi. What do you do then?
Windows does it different with hidden files than unix based systems.
For unix based systems something like this should work:
<?php
if (preg_match('/^(\.\w+|\.$|\.\.$)/i', $location)) {
}
?>
I know you do it (if $name[0] === '.' ) because it is much faster. But it is NOT correct and some day you miss things like me today :-)