Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP symlink() Function

PHP symlink() Function


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual


Definition and Usage

The symlink() function creates a symbolic link from an existing target file with the specified name.

Returns TRUE on success, or FALSE on failure.

Syntax

symlink(target,link)

Parameters Description
target Required.
link Required.

Tips and Notes

**Note:** This is not an HTML link, but a link in the file system.

**Note:** This function cannot be executed on Windows platforms.


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual