Ahh forget it .. I figured it out
change to is_dir("$path/$file").. *smack*
ignore this altogether
mike
Mike Eheler wrote:
> Consider this code for traversing through a directory structure:
>
>
> function traverse($path='.') {
> $path = realpath($path);
> $dir = opendir($path);
>
>
I'll note that the erroneous command is the is_dir($file).. this causes
the problem.
Mike
Mike Eheler wrote:
> Consider this code for traversing through a directory structure:
>
>
> function traverse($path='.') {
> $path = realpath($path);
> $dir = opendir($path);
>
> echo "\nDirecto
2 matches
Mail list logo