PHP file_exists May 11, 2012 Pramod T P It checks whether a file or directory exists Example <?php echo file_exists(“test.txt”)?”Yes”:”No”; ?>