PHP link() Function

PHP link Function


Define :

In this tutorial we have to learn about php link.The link() Function is not a HTML link,but a link in the filesystem. This function created a hard link from an existing target with a specified link name.

Syntax
   link(targetlink)
Parameter
Parameter Description
target Required. Specifies the target
link Required. Specifies the name of the link

 Given below example show the hard link created by using link():

Output : linked successfully created