file_exists

It checks whether a file or directory exists

Example

<?php

echo file_exists(“test.txt”)?”Yes”:”No”;

?>

Share