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

symlink

Description

The symlink of Filesystem for PHP creates a symbolic link.

Syntax

symlink(
    string $target,
    string $link
): bool

Parameters

target

Target of the link.

The link name.

Return

Returns true on success or false on failure.

Examples

<?

$target = 'symlink.php';
$link = 'symlink';

symlink($target, $link);

echo readlink($link);

unlink($link);