Share the code
$files = array(); if ($handle = opendir ('dir_name')) { while ( false !== ($entry = readdir ($handle))) { $path_parts = pathinfo( $entry); if($path_parts ['extension'] !='' ){ $files[] = $entry ; } } closedir( $handle); }
No comments:
Post a Comment