on 2/20/03 3:34 PM, MIKE YRABEDRA at [EMAIL PROTECTED] wrote:
> How do I remove the '.' and '..' from displaying with the following script?
> I want just the files, not the dots.
>
> if ($handle = opendir('graphics/')) {
> echo "Files:\n";
>
> /* This is the correct way to loop over the dir
How do I remove the '.' and '..' from displaying with the following script?
I want just the files, not the dots.
\n";
/* This is the correct way to loop over the directory. */
while (false !== ($file = readdir($handle))) {
echo "$file\n";
}
closedir($handle);
}
?>
--
2 matches
Mail list logo