Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP link() Function

PHP link() Function


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual


Definition and Usage

The link() function creates a hard link from an 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 link in the file system.

**Note:** This function does not work on remote files.


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual