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