Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dir = "./";
- if (is_dir($dir)) {
- if ($dh = opendir($dir)) {
- while (($file = readdir($dh)) !== false) {
- if( $file != '.' && $file != '..' && preg_match('#\.(wav)$#i', $file)) {
- echo "fichier : $file : type : " . filetype($dir . $file) . "<br />\n";
- }
- }
- closedir($dh);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement