Home Menu

is_link

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

<?

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

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

unlink($link);

?>
uploads.php

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms