Unix problem

From: Date: Sat, 19 May 2001 12:22:35 +0000
Subject: Unix problem
Groups: php.general 
Request: Send a blank email to php-general+get-53515@lists.php.net to get a copy of this message
I'm using the follow snippet while traversing a directory. 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. Any suggestions of what could be wrong with the Unix version? Urb

« previous php.general (#53515) next »