access file outside public_html using codeigniter 3.X
问题 For security reasons I have the PDF files in a folder called Pdf located just outside the public_html . Im trying to access this file from my controller which lies inside the application folder. I tried using a couple of paths.. One being: ../../../../Pdf/{$name_hash}.pdf . The other being: /home/xx/Pdf/{$name_hash}.pdf I tried to include the file and send it as an js.openwindow as well as readfile($filepath) all to no avail! The files are existing and the name is also generated correctly by