Get the target of a symbolic link:
<?php
echo readlink("/user/testlink");
?>
The readlink() function returns the target of a symbolic link.
readlink(
linkpath)
Parameter | Description |
---|---|
linkpath | Required. Specifies the link path to check |
Return Value: | The target of the link on success, FALSE on failure |
---|---|
PHP Version: | 4.0+ |
PHP Changelog: | PHP 5.3: readlink() now available on Windows platforms |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!