note 13740 added to function.is-dir.php

From: Date: Sat, 30 Jun 2001 15:43:10 +0000
Subject: note 13740 added to function.is-dir.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14822@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; }; }; http://www.php.net/manual/en/function.is-dir.php

« previous php.notes (#14822) next »