PHP readlink() Function

Get the target of a symbolic link

Definition and Usage

The readlink() function returns the target of a symbolic link.

Syntax

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+
PHP Changelog: PHP 5.3: readlink() now available on Windows platforms

❮ PHP Filesystem Reference