How to check availability of a folder in PHP?

We can check the availability of a folder using PHP as follows :

if(file_exists ( "folder_name" ))
{
     echo "Folder Exists";
}
else
{
     echo "Folder Not Exists";
}

Leave a Reply