PHP readlink() function

Definition and Usage

The readlink() function returns the target pointed to by the symbolic link.

If successful, the function returns the target of the connection. If failed, returns false.

Syntax

readlink(linkpath)
Parameter Description
linkpath Required. Specifies the connection path to be checked.

Tips and Comments

Note:This function is not implemented under Windows platform..

Example

<?php
echo readlink("/user/testlink");
?>