September 2001
Intermediate to advanced
768 pages
32h 45m
English
string readlink(string linkname) Returns the target of a symbolic link.
Returns:
Target of link; FALSE on error
Description:
This function returns the path of the file to which a link points, or FALSE in case of an error.
Example:
$src = "/home/user/testlink";
$target = readlink($src);
if($target == FALSE)
{
echo ("Error");
}
else
{
echo ("$src points to $target");
}
|
Read now
Unlock full access