This segment of the PHP tutorial illustrates the use of file handling function is_dir() and its example
This segment of the PHP tutorial illustrates the use of file handling function is_dir() and its example
Syntax
bool is_dir(file_name);
Code
<?php
echo "is this
directory".is_dir("c:/rose1");
echo "<br>is
this directory".is_dir("c:/rose1/ram.txt");
?>
Output
is this directory1
is this directory