note 81991 deleted from function.is-dir by felipe
| From: | felipe@php.net | Date: | Sun, 23 Mar 2008 10:56:55 +0000 |
| Subject: | note 81991 deleted from function.is-dir by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137356@lists.php.net to get a copy of this message | ||
Note Submitter: Khez
----
scratch that... this is probably best...
<?php
function is_empty_folder($folder){
if(is_dir($folder) ){
$files=opendir($folder);
while ($file=readdir($files))
if (($file!='.') || ($file!='..'))
return false;
return true;
}
return NULL;
}
?>