Good day,
Could someone please assist / advise as I am trying to create a symlink between the images folder in the public_html directory and the images folder in the App directory. When running the symlink file, the message displays: "Symlink process successfully completed", but I receive an error log stating:
PHP Warning: symlink(): File exists in /home/property/public_html/symlink.php on line 5
The code that I am using in order to try and create the symlink are:
<?php
$targetFolder = '/home/property/app/images';
$linkFolder = '/home/property/public_html/images';
symlink($targetFolder,$linkFolder);
echo 'Symlink process successfully completed';
?>
source https://stackoverflow.com/questions/67740392/symlink-error-php-warning-symlink-file-exists
Comments
Post a Comment