This function will create an array of files or folders, depending on the $type, inside the given $folder whit the limit of the $filter.
The sorting of the list is given in the $sort.
The sorting of the list is given in the $sort.
Quote
makefilelist ( string $folder, string $filter [, string $sort [, string $type ] ] )
<?php
$folder = IMAGES;
$filter = "avatars|news";
$sort = ture;
$type = "folders"
makefilelist($folder, $filter, $sort=true, $type="files");
?>
Quote
array(
0 => articles,
1 => news_cats,
2 => photoalbum,
3 => ranks,
4 => smiley
}