How to use Filesystem link in PHP

In this article I am going to explain about link function in PHP.
  • 1329

PHP link() Function

The filesystem link function creates a hard link.

Syntax of link function

link(target, link,)

Parameters in link  function

It have two parameter:

Parameter Description.
target It specifies target link.
link It specifies link name.

Example of filesystem link function

<html>

<body>

<?php

$target = 'C:\wamp\www\Dinesh\Mcn.txt';

$link = 'C:\wamp\www\Dinesh\PhpIntro.txt';

link($target, $link);

?>

</body>

</html>


You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.