PHP link() Function

Definition and Usage

The link() function creates a hard link.

Returns true if successful, false otherwise.

Tip:The connection created is not an HTML link, but a connection in the file system.

Syntax

link(target,link)
Parameters Description
target Required.
link Required.

Tips and Notes

Note:This function cannot act on remote files, the checked file must be accessed through the server's file system.

Note:This function does not work on the Windows platform.