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”; ?> Share this: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading...