Create a symbolic link:
<?php
$target = "downloads.html";
$link = "downloads";
symlink($target, $link);
echo readlink($link);
?>
The symlink() function creates a symbolic link from the existing target with the specified name link.
Note: This is not an HTML link, but a link in the filesystem.
symlink(
target,
link)
Parameter | Description |
---|---|
target | Required. Specifies the target of the link |
link | Required. Specifies the link name |
Return Value: | TRUE on success, FALSE on failure |
---|---|
PHP Version: | 4.0+ |
PHP Changelog: | PHP 5.3: Available on Windows platforms |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!