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


-- 
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]

Reply via email to