<?php
$dir = opendir($mydir);
while((false!==($file=readdir($dir))))
if($file!="." and $file !="..")
echo($mydir.'/'.$file);
closedir($dir);
?>
Is there a funciton I can get the file extension within that directory "mydir"? Or I just have to write my own funciton to do so?
Thanks!