Welcome to WebmasterWorld Guest from 188.8.131.52
After I call
<a href='MG_CV.doc'>download file</a>
I need on clicking on "download file" download 38912831_7183791.doc but in "save as dialog" must be "MG_CV.doc" how can I do this in PHP.
2. Don't directly link to the file, link to a script that opens the DB, gets the real file name and the original file name.
3. Use one of the open methods to open the file and print to the browser. This will allow you to secure the files too, if needed.
4. When outputting the download dialog, populate the "filename" attribute in the header.
One example here [webmasterworld.com] from a recent thread