PHP link()Functions


PHP Filesystem 参考手册Complete PHP Filesystem Reference Manual

Definition and Usage

The link() function creates a hard link from the existing target file with the specified name.

Returns TRUE on success, or FALSE on failure.

Syntax

link(target,link)

Parameters Description
target Required.
link Required.


Tips and Notes

Note:This is not an HTML link, but a file system link.

Note:This function cannot work on remote files.


PHP Filesystem 参考手册Complete PHP Filesystem Reference Manual Other Extensions