September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool link(string link, string original)
Creates a hard link.
Returns:
TRUE on success; FALSE on error
Description:
link() creates a hard link, if permissions allow, from the original file to the link. This function doesn’t work on systems not supporting links (for example, Windows only supports shortcuts).
Example:
$path = "/home/user/orig_file"; $path_new = "/home/user/link_file"; link($path_new, $path); |
Read now
Unlock full access