PHP readlink()Function
Complete PHP Filesystem Reference Manual
Definition and Usage
The readlink() function returns the target of a symbolic link.
If successful, the function returns the target of the link. If it fails, it returns FALSE.
Syntax
readlink(linkpath)
| Parameter | Description |
|---|---|
| linkpath | Required. Specifies the link path to check. |
Tips and Notes
Note:This function cannot be executed on the Windows platform.
Examples
<?php
echo readlink("/user/testlink");
?>
echo readlink("/user/testlink");
?>
Complete PHP Filesystem Reference Manual Other Extensions