if(! is_dir($dosya)){ echo '<a href="http://www.domain.com/dosyalar/'.$dosya.'>'.$dosya.'</a><br />'; } ?>