note 9202 modified in is_file by ronabop
| From: | ronabop@php.net | Date: | Tue, 24 Oct 2000 05:47:15 +0000 |
| Subject: | note 9202 modified in is_file by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6938@lists.php.net to get a copy of this message | ||
I tried many ways to display files, here is a (cheesy but effective) workaround to using the
is_file function.
<?
$dir_name = "d:\php\examples";
$dir = opendir($dir_name);
while ($file_name = readdir($dir)) {
if (($file_name != "." && $file_name != "..")) {
print $file_name."<br>";
}
}
closedir($dir)
?>
http://www.php.net/manual/function.is-file.php