PHP symlink() Function

The symlink() function creates a symbolic link from the existing target with the specified name link.Returns TRUE on success or FALSE on failure.

bool symlink ( string $target , string $link )

symlink() creates a symbolic link to the existing target with the specified name link.

Example -

Note -

Windows users should note that this function will only work if the system you run PHP from is Windows Vista/Windows Server 2008 or newer. Windows versions prior to that do not support symbolic links.

ParameterDescription
targetTarget of the link
linkThe link name