Advertisement
Guest User

Untitled

a guest
May 29th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2. $dir = "./";
  3. if (is_dir($dir)) {
  4. if ($dh = opendir($dir)) {
  5.  
  6. while (($file = readdir($dh)) !== false) {
  7. if( $file != '.' && $file != '..' && preg_match('#\.(wav)$#i', $file)) {
  8. echo "fichier : $file : type : " . filetype($dir . $file) . "<br />\n";
  9. }
  10. }
  11. closedir($dh);
  12. }
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement