Introduction
In this article I describe the PHP FileSystem functions link, link_info, Istat and mkdir. To learn some other FileSystem functions, go to:
- FileSystem Function in PHP: PART 1
- FileSystem Function in PHP: PART 2
- FileSystem Function in PHP: PART 3
- FileSystem Function in PHP: PART 4
- FileSystem Function in PHP: PART 5
- FileSystem Function in PHP: PART 6
- FileSystem Function in PHP: PART 7
- FileSystem Function in PHP: PART 8
- FileSystem Function in PHP: PART 9
- FileSystem Function in PHP: PART 10
- FileSystem Function in PHP: PART 11
- FileSystem Function in PHP: PART 12
- FileSystem Function in PHP: PART 13
PHP link() Function
The PHP FileSystem link function creates a hard link and it returns true on success or false on failure.
Syntax
| link_ifo(path) |
Parameter in link function
The parameter of the function is:
| Parameter | Description |
| path | It specifies the path to check. |
Example
An example of the function is:
<?php
$target = 'test1.ext'; // This is the file that already exists
$link = 'test2.ext'; // This the filename that you want to link it to
link($target,$link);
?>
PHP link_info Function
The PHP FileSystem link function is used to get the information about a link; it basically returns the information about a hard link.
Syntax



Join the conversation! Your thoughts help the community grow.