PHP - link
]Podporované v PHP 4, PHP 5 Syntax
bool link ( string $to_path , string $from_path )
Popis
Príkaz jazyka PHP
link() creates a hard link.
Parameters
to_path - Target of the link.
from_path - The link name.
Return Values
Returns TRUE on success or FALSE on failure.
Príklad
<?php
$from_path = 'source.ext'; // This is the file that already exists
$to_path = 'newfile.ext'; // This the filename that you want to link it to
link($from_path, $to_path);
?>
Pozri aj
symlink, readlink, linkinfo
]