For this purpose you may use the special php function, called is_dir, for example: <?php if(is_dir($YourFileName)) { ... } else { ... } ?>
<< Go back