Code Snippets Php

$filename = 'test.csv';
if (file_exists($filename))
{
print "The file $filename exists";
}
else
{
print "The file $filename does not exist";
}
?>