September 2001
Intermediate to advanced
768 pages
32h 45m
English
int linkinfo(string path) Gets information about a link.
Returns:
Device ID on success; -1 on error
Description:
This function can be used to check whether a link exists. If the link exists, the function returns the st_dev field from the UNIX stat() function.
Example:
$path = "/home/usr/mylink";
if(linkinfo($path) != -1)
{
echo ("Link exists.");
}
else
{
echo ("Link does not exist.");
}
|
Read now
Unlock full access