PHP.nl

symlink

symlink

Creates a symbolic link

bool **symlink** string $target string $link
creates a symbolic link to the existing
with the specified name

. symlink``target``link

targetTarget of the link.

linkThe link name.

return.success

The function fails, and issues , if already exists. On Windows, the function also fails, and issues , if does not exist. E_WARNING``link``E_WARNING``target

Voorbeeld: Create a symbolic link

<?php
$target = 'uploads.php';
$link = 'uploads';
symlink($target, $link);

echo readlink($link);
?>

is_link``link``readlink``linkinfo``unlink