file_exists function

<?php

$pathname = 'dir/test.txt';
$result = file_exists($pathname);

echo $result ? 'Yes' : 'No';

Leave a Comment

Your email address will not be published. Required fields are marked *