Creating Symlinks on a Shared Hosting Server

You can create symlinks on a shared hosting server using php's symlink() function.

    $target = '/path/to/target'; // An existing file or folder.
    $link = '/path/to/new/link'; // Name of the new link.
    symlink($target , $link);

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

Attached is a little script for creating symlinks. It should never be left on a production server.

AttachmentSize
symlinker.php_.txt477 bytes