I would like to display a file that is hidden from the user (& the internet in general). It will be a pdf file but I can't figure out any way to keep it completely hidden. I had tried using .htaccess but either I didn't create it properly or it just isn't working properly. I would like to ideally have it in a folder that is above the folder that is the url for the site. The site requires registration and only registered users should have access to the file.
I am displaying the file http://www.daniweb.com/web-development/php/threads/238034/show-pdf-file-in-web-page using something like this. If I try to use a file reference not under the url's folder it doesn't work for obvious reasons (i.e. it referenced in the browser not at the backend).
Any help most appreciated.