Mega Code Archive

 
Categories / Php / File Directory
 

The file_exists php script checks to see whether the file is there

<?php $file_name="file_exists.php"; if(file_exists($file_name)) {     echo ("$file_name does exist."); } else {     echo ("$file_name does not exist."); } ?>