Php is file function

In php is_file() function checks whether file exists or not.File's full path is given as an argument. If file exists, it returns true otherwise false.


Example:
<php
$path="C:\\Documents and Settings\\user1\\My Documents\\My Pictures\\Sunset.jpg";
if(is_file($path))
{
echo "File exists";
}
else
{
echo "File does not exist";
}