incorrect results from is_dir

From: Date: Fri, 07 Dec 2001 20:41:59 +0000
Subject: incorrect results from is_dir
Groups: php.general 
Request: Send a blank email to php-general+get-77082@lists.php.net to get a copy of this message
I'm getting TRUE from is_dir when no directory exists. Here's my code; //Find out if there is an image folder existing $image_folder = floor ($service_datex[1]) . "_" . floor ($service_datex[2]) . "_" . $service_datex[0] . "_" . $site_id; chdir('site_images'); if (is_dir($image_folder) == "TRUE") { $folder_exists = "yes"; } else { $folder_exists = "no"; } Everything comes up TRUE whether the directory exists or not. Any help greatly appreciated. Running on UNIX. Thanks, Tom

« previous php.general (#77082) next »