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

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

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