PHP readlink()Function


PHP Filesystem 参考手册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");
?>


PHP Filesystem 参考手册Complete PHP Filesystem Reference Manual Other Extensions