hey people is there a way i can check the folder if it is empty or not?
<?php if(is_dir($directory)) { if($dir=opendir($directory)) { if(readdir($dir)===false) { //$dir is empty } else { //$dir is not empty but pointer //is set to second file must use rewinddir() } } } ?>
hth Bubble