I want to list files in a dir but NOT *.php files
or *.htm files
here is what I have so far;
<?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "$file\n";
}
}
}
closedir($handle);
?>
how do I filter *.php files ?
TIA
+--------------------------+
| "Hacker by Heart" |
| Yahoo! : saenzcorp |
+--------------------------+
or *.htm files
here is what I have so far;
<?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "$file\n";
}
}
}
closedir($handle);
?>
how do I filter *.php files ?
TIA
+--------------------------+
| "Hacker by Heart" |
| Yahoo! : saenzcorp |
+--------------------------+