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;


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.


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