That should get you started :
$dirname='/var';
$dh=opendir($dirname) or die('could not open directory');
while (!(($file=readdir($dh))===false)){
if (is_dir('$dirname/$file')){
$myarray[]=$file;
}
echo "$file<br>";
$myarray[]=$file;
}
Mario
Merlin wrote:
Hi there,
does anybody know how to get all file names from a specified directory into an array?
Thanx,
Merlin
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

