php symlinks not creating -


i trying create symlink target directory outside script root , link inside folder in script:

if(!file_exists('properties')) {         symlink('/hermes/bosnaweb03a/b1456/nf.comcan/public_html/properties' , __dir__.'/properties'); var_dump( file_exists('/hermes/bosnaweb03a/b1456/nf.comcan/public_html/properties')); var_dump( is_dir('/hermes/bosnaweb03a/b1456/nf.comcan/public_html/properties'));     } 

both var_dumps return true. not creating symlink error no such file or directory. doing wrong here please

you have permission error. try shell command

ln -s /hermes/bosnaweb03a/b1456/nf.comcan/public_html/properties , {php_script_location}/properties' 

with same user running script. if can't create file, need run user have permission create file, or can change permissions on location more permissive.


Comments

Popular posts from this blog

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

c++ - Visual Leak Detector detects leak on new blank MFC project -

c# - Connection String Trouble MetaDataException -