Hi all,
I need some input on the following issue: I need to create a download area for files to registered users only. Of course, the files should not be 'visible' to any search engine nor to a user who has knowledge of the direct link to the file (I know, not a likely situation).
So, I thought I could put the files into a directory below the document root of the webspace. I do that also for pictures on another site. There, I use a php-script in the SRC option of the IMG-tag that will output the image using the following header:
header("Content-type: image/jpeg");
Now, I guess I can do it similarly using a regular HTML-link and using the according headers. What are these for Word, Excel and PDF's? Can I also alter the file name? Or does anyone have a safer and easier solution?