@up, your script wont work, i see some errors.
Here it is :-)
<?php $glob = glob('../../_documents/*.*'); if(isset($glob) && is_array($glob)) { foreach ( $glob as $file) { $fileName = basename($file); if ($fileName != 'index.php') { echo '<li>'.$fileName.'</li>'; } } } elseif(empty($glob)) { echo '<li>There are currently no files in this folder.</li>'; } else { echo '<li>Something went wrong.</li>'; }?>