Hi, i've got this big nested group of files, and i'm letting people download them, but only if they are the correct owner, as stated in the database. so, i've got a GIF nested on the server, where Apache doesn't see it. I've written the PHP script to successfully output the contents of this GIF if the user is logged in - no problem.
the problem is, that if the user wants to save the image, the filename of the image is always the name of the script that's spitting it out. is it possible to tell the browser the intended filename of the file being output?
Another example would be if i had a link to a PHP script that outputs the contents of a ZIP file, in a new window. the browser will usually give you the option of either saving it to disk, or opening it. if user wants to open it, i'd like to be able to specify the filename.
do i do this in the page headers?
thank you much, in advance