Create a hard link:
<?php
$target = "text.txt";
$linkname = "mylink";
link($target, $linkname);
?>
The link() function creates a hard link.
link(
target,
link)
Parameter | Description |
---|---|
target | Required. Specifies the target |
link | Required. Specifies the name of the link |
Return Value: | TRUE on success, FALSE on failure |
---|---|
PHP Version: | 4.0+ |
PHP Changelog: | PHP 5.3.0: Now available on Windows platforms |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!