Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

is_link

Description

The is_link of Filesystem for PHP tells whether the filename is a symbolic link.

Syntax

is_link ( string $filename ) : bool

Parameters

filename

Path to the file.

Return

Returns TRUE if the filename exists and is a symbolic link, FALSE otherwise.

Examples

1

<?

$target = 'uploads.php';
$link = 'uploads';
symlink($target, $link);

if (is_link($link)) {
    echo readlink($link);
}

unlink($link);

?>
HomeMenu