file_exists() function,
EXAMPLE PHP CODE:
<?php
$filename = '/pathto/file.php';
if (file_exists($filename)) {
echo "The file $filename exists";
} else {
echo "The file $filename does not exist";
}
?>
$filename = '/pathto/file.php';
if (file_exists($filename)) {
echo "The file $filename exists";
} else {
echo "The file $filename does not exist";
}
?>