Example
Get the target of a symbolic link:
html
<?php
echo readlink("/user/testlink");
?>
Definition and Usage
The readlink() function returns the target of a symbolic link.
Syntax
text
readlink(linkpath)
Parameter Values
| Parameter | Description |
|---|---|
| linkpath | Required. Specifies the link path to check |
Technical Details
| Return Value: | The target of the link on success, FALSE on failure |
|---|---|
| PHP Version: | 4.0+ |