Created
November 30, 2018 15:46
-
-
Save DmmitryIs/a2557c555068c211ead51b24783df91f to your computer and use it in GitHub Desktop.
Create symlink by php script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$target = $_SERVER['DOCUMENT_ROOT'] . '/path/to/folder'; // Target folder | |
$link = $_SERVER['DOCUMENT_ROOT'] . '/path/to/link/NAME'; // Linkfile folder with name NAME | |
symlink($target, $link); | |
echo readlink($link); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment