I need to rename some files with header().
the mime-type could be any number of things, and I have the proper mime-type stored in the database, along with the original filename. I have the actual files stored on the server with a different name (to insure uniquness).
I need to rename the server filename to the orginal file name using header() to allow for downloading with the orgianl filename.
I have
header("Context-type: $mimetype");
header("Content-Disposition: filename=$filename");
but where do I tell it the location of the file on the server? Do I need to open it with fopen, or something of the sort?
thanks