Check if File or Directory Exists using PHP April 16, 2021 PHP 0 Comments 377 Views file_exists function <?php $pathname = 'dir/test.txt'; $result = file_exists($pathname); echo $result ? 'Yes' : 'No';
Leave a Comment
Cancel reply