New Page  |  Edit Page

Symbolic Links

PHP can be used to create Symbolic Links with the following script:


<?php
    $target = '/var/www/public_html/folder';
    $shortcut = 'folder';
    symlink($target, $shortcut);
    echo readlink($link);
?>