PHP Code:// output array
$elements = count($dirs);
for ($i = 0; $i<$elements; $i++) {
if (eregi("gif$|png$|jpg$|bmp$|jpg$|jpeg$", $dirs[$i])) {
echo "<font color=\"#ff0000\">$dirs[$i] - Image File!</font><br>";
} else {
echo "$dirs[$i] - Not an image File<br>";
}
}




Reply With Quote