Retrieve the target of a symbolic link.
| <?php echo readlink(“/user/testlink”); ?> |
The readlink() function returns the destination of a symbolic link.
| readlink(linkpath) |
|
Parameter |
Description |
|
linkpath |
Required. Specifies the path of the symbolic link to check. |
|
Return Value: |
Returns the target of the link on success; FALSE on failure. |
|
PHP Version: |
4.0+ |
|
PHP Changelog: |
Starting with PHP 5.3, |