Re: Unix problem

From: Date: Sat, 19 May 2001 15:42:59 +0000
Subject: Re: Unix problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53530@lists.php.net to get a copy of this message
while ($Directory=readdir($DirHandle)) { $IsFile = is_file($Directory); $IsDir = is_dir($Directory); echo " is file=$IsFile - is dir=$IsDir\n";
        Works fine on Windows box, on a Unix box (RedHat) both
is_file() and is_dir() return null no matter what the contents of $Directory is.
This is a wild guess.. UPPER and lowercase used instead of only upper of only lowercase.. Spaces in file or directory names.. Bye, B.

« previous php.general (#53530) next »