PHP.nl

readlink

readlink

Returns the target of a symbolic link

 **readlink** string $path
does the same as the readlink C function.

readlink

pathThe symbolic link path.

Returns the contents of the symbolic link path or false on error.

Opmerking: > The function fails if is not a symlink, except on Windows, where the normalized path will be returned. path

Voorbeeld: example

<?php

// output e.g. /boot/vmlinux-2.4.20-xfs
echo readlink('/vmlinuz');

?>

is_link``symlink``linkinfo