anyway of doing that with PHP?
The user select a directory and then we list all the files that we found in that directory.
Any idea?
Thanx in advance 🙂
Jacinthe
From the manual at http://www.php.net/manual/en/function.readdir.php
// Note that !== did not exist until 4.0.0-RC2 <?php $handle=opendir('.'); echo "Directory handle: $handle\n"; echo "Files:\n"; while (($file = readdir($handle))!==false) { echo "$file\n"; } closedir($handle); ?>
thanx 🙂
how can i list a windows directory it seems that those commands only work on linux/unix...
i can't pass a directory name like c:...
$handle=opendir('c:/htdocs/'); worked fine for me.