Hi, I need a function that returns an array with the file names in a directory.
I think that this function exists, but I cannot find it in the PHP manual.
Does anybody remember its name? Where can I find it in the manual?
Thanks,
I found it:
<?php $handle = opendir('.'); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "$file\n"; } } closedir($handle); ?>