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);
$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.
| Attachment | Size |
|---|---|
| symlinker.php_.txt | 477 bytes |
