Latest web development tutorials
 

PHP readlink() Function


< Complete PHP Filesystem Reference

Definition and Usage

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

This function returns the target of the link on success, or FALSE on failure.

Syntax

readlink(linkpath)

Parameter Description
linkpath Required. Specifies the link path to check

Tips and Notes

Note: This function is not implemented on Windows platforms.


Example

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


< Complete PHP Filesystem Reference