THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

PHP readlink() Function


PHP Filesystem Reference 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");
?>


PHP Filesystem Reference Complete PHP Filesystem Reference