Php is dir function

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


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