"
Easy way to get rid of the dots that scandir() picks up in Linux environments:
<?php $directory = '/path/to/my/directory'; $scanned_directory = array_diff(scandir($directory), array('..', '.'));... ?>
Anynomous
"
Easy way to get rid of the dots that scandir() picks up in Linux environments:
<?php $directory = '/path/to/my/directory'; $scanned_directory = array_diff(scandir($directory), array('..', '.'));... ?>
See More " 26 July 2023