Generate a symbolic link.
| <?php $target = “downloads.php”; $link = “downloads”; symlink($target, $link); echo readlink($link); ?> |
The symlink() function creates a symbolic link with the specified name that points to the existing target.
Note: This refers to a filesystem link, not an HTML link.
| symlink(target, link) |
|
Parameter |
Description |
|
target |
Required. Specifies the target that the link points to. |
|
link |
Required. Specifies the name of the link. |
|
Return Value: |
Returns TRUE on success, FALSE on failure. |
|
PHP Version: |
4.0+ |
|
PHP Changelog: |
Starting with PHP 5.3, available on Windows platforms. |