/ Published in: PHP
PHP4 replacement for the PHP5 function scandir. Parameters are $dir for the directory to be scanned, $filter to filter results, and $sort for a sorted array (0 = regular, 1 = reverse).
Expand |
Embed | Plain Text
function scandir ($dir = './', $filter = "", $sort = 0) { if (! $dir_open) return false; $files[] = $dir_content; } } if ($sort == 1) else } return $files; }
Comments
Subscribe to comments
You need to login to post a comment.

thx for nice code
thx for nice code