There's an exemple right on the manual, function opendir();:
if ($dir = @opendir("/tmp")) {
while($file = readdir($dir)) {
echo "$file\n";
}
closedir($dir);
}
--
Julio Nobrega.
2B||!BB - That's the question.
"Karl J. Stubsjoen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> GlacierI need to do a few things with files... 1 of them being to iterate
> through a directory and display each file. How do you do this?
>
>
> Karl J. Stubsjoen
> www.iexcelinlife.com
> [EMAIL PROTECTED]
> Phone: 602.4000047
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]