link
link
Create a hard link
bool **link** string $target string $link
creates a hard link.
link
targetTarget of the link.
linkThe link name.
return.success
The function fails, and issues , if
already exists, or if does not exist.
E_WARNING``link``target
Voorbeeld: Creating a simple hard link
<?php
$target = 'source.ext'; // This is the file that already exists
$link = 'newfile.ext'; // This the filename that you want to link it to
link($target, $link);
?>
Opmerking: > For Windows only: This function requires PHP to run in an elevated mode or with the UAC disabled.
symlink``readlink``linkinfo``unlink