Hi there,
I just wanted to ask you how to put the list of filenames on certain directory in a PHP array.
Given the directory or path to list files from, how do you get all those filenames and store it in an array?
Thanks in Advance!
Nil 🙂
See http://www.php.net/dir for complete details on how to do this.
Dave
=========================================== http://badblue.com/helpphp.htm Free small footprint web server for Windows
<? $dp = opendir(\"dir\"); $files = array(); while($f = readdir($dp)) $files[] = $f; closedir($dp); ?>
Thanks very much for your help!
🙂