note 23961 deleted from function.is-dir by dams

From: Date: Sat, 03 Aug 2002 03:09:21 +0000
Subject: note 23961 deleted from function.is-dir by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34196@lists.php.net to get a copy of this message
If you just want to check if a dir exists or not (true or false), you can do it like this. Even though I don't like using @ at all... But in this case it is the only way to get around the error messages. <? if (@is_dir("../yourdir")) { echo 'is a dir'; } else { echo 'is not a dir'; } ?>

« previous php.notes (#34196) next »