note 9202 deleted from function.is-file by vincent
| From: | vincent@php.net | Date: | Sat, 16 Aug 2003 14:33:53 +0000 |
| Subject: | note 9202 deleted from function.is-file by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54368@lists.php.net to get a copy of this message | ||
Note Submitter: rebel@windriders.com
----
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)
?>