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: Share on X (Opens in new window) X Share on Facebook (Opens in new window) Facebook Like Loading...