PHP How to check whether a file exists or not – PHP April 28, 2011 Pramod T P Leave a comment <?php if(file_exists($filePath)) echo "Exists" ?> Share this: Share on X (Opens in new window) X Share on Facebook (Opens in new window) Facebook Like Loading...