cakephp - Download a file from some parent directory -


i download file located in parent directory of application.

i want download file : /mydirectory/myfile.ext application located : /www/app/

i've tried things : $this->html->link('test','../../../mydirectory/myfile.ext') doesn't seem work...

is want possible ?

thanks

create symbolic link in app's webroot directory want allow access files on server:-

ln -s source_directory link_directory 

this provide access directory webroot.

you can link files:-

echo $this->html->link('test', 'link_directory/myfile.ext'); 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -