function recupextention ($filename) { return substr(strrchr($filename, '.'), 1); } function listeRep($rep) { if (is_dir($rep)) { if ($rh = opendir($rep)) { $i = 0; while (($file = readdir($rh)) !== false) { if ($file != '.' && $file != '..') { if (!is_dir($rep.$file)) { $i++; } } } } } }