PHP readlink () function
![PHP Filesystem Reference Manual](/images/up.gif)
Definition and Usage
readlink () function returns the target of a symbolic link.
If successful, the function returns the target of the connection. If it fails, it returns FALSE.
grammar
readlink(linkpath)
参数 | 描述 |
---|---|
linkpath | 必需。规定要检查的连接路径。 |
Tips and Notes
Note: This function can not be executed on a Windows platform.
Examples
<?php
echo readlink("/user/testlink");
?>
echo readlink("/user/testlink");
?>
![PHP Filesystem Reference Manual](/images/up.gif)