Posted by Mario St-Gelais on 10/14/78 11:12
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
>
Navigation:
[Reply to this message]
|