September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool is_file(string filename) Checks whether a file is a regular file.
Returns:
TRUE if a regular file; FALSE otherwise
Description:
Checks whether the specified file is a normal file as opposed to a directory or link.
Note:
The results of this function are cached. See clearstatcache() for details.
Example:
$file = "testfile";
if(is_file($file))
{
echo ("$file is a normal file.");
}
else
{
echo ("$file could be a link or dir.");
}
|
Read now
Unlock full access