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