Query: readlink
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
READLINK(3) 1 READLINK(3) readlink - Returns the target of a symbolic linkSYNOPSISstring readlink (string $path)DESCRIPTIONreadlink(3) does the same as the readlink C function.PARAMETERSo $path - The symbolic link path.CHANGELOG+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.3.0 | | | | | | | This function is now available on Windows plat- | | | forms (Vista, Server 2008 or greater). | | | | +--------+---------------------------------------------------+RETURN VALUESReturns the contents of the symbolic link path or FALSE on error.EXAMPLESExample #1 readlink(3) example <?php // output e.g. /boot/vmlinux-2.4.20-xfs echo readlink('/vmlinuz'); ?>SEE ALSOis_link(3), symlink(3), linkinfo(3). PHP Documentation Group READLINK(3)