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

.htaccess - htaccess convert request to clean url and add slash at the end of the url -

php - facebook and github login HWIOAuthBundle and FOSUserBundle in Symfony2.1 -

hadoop - Sqoop installation export and import from postgresql -