note 13740 deleted from function.is-dir by jimw

From: Date: Thu, 18 Apr 2002 21:28:10 +0000
Subject: note 13740 deleted from function.is-dir by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-29549@lists.php.net to get a copy of this message
Here is a nice little function that I made after strugling with the is_dir for awhile....although it doesn't use is_dir I know this works for sure. It returns FALSE if the directory doesn't exist and TRUE if the directory does. function folder_exist($folder_path) { $create_dir = @mkdir($folder_path, 0755); if (!$create_dir){ return TRUE; } else { @rmdir ($folder_path); return FALSE; }; };

« previous php.notes (#29549) next »