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

link

Create a hard link

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

Target of the link.

link

The link name.

Returns true on success or false on failure.

<?

$target = $_SERVER['DOCUMENT_ROOT'] . '/assets/txt/file.txt';
$link = 'link.html';

$return = link($target, $link);

var_export($return);

unlink($link);

?>
true
<?

$target = $_SERVER['DOCUMENT_ROOT'] . '/assets/txt/file.txt';
$link = 'link.html';

link($target, $link);

echo readfile($link);

unlink($link);

?>
Hello5
HomeMenu