createSymlink.php
Table of Contents
Functions
- createSymlink() : bool
- Creates a symbolic link pointing to a target.
Functions
createSymlink()
Creates a symbolic link pointing to a target.
createSymlink(string $target, string $link[, bool $overwrite = false ]) : bool
The target is not required to exist — dangling symlinks are valid and
supported (standard POSIX behaviour). When an entry already exists at $link,
it is replaced only if $overwrite is true.
Parameters
- $target : string
-
The path the symlink points to.
- $link : string
-
The symlink path to create.
- $overwrite : bool = false
-
Whether to replace an existing file/symlink at
$link(default:false).
Tags
Return values
bool —Returns true on success.