How to change file header name when user request that.
for example when user open the url [dl.example.com/file.zip] for download, then browser save file with name [ex1_file.zip] instead of [file_zip].
I don't know how to handle all request and make this change in php.
Keep in mind i can't change file real name.
Edit:
I don't want code, I need a way for handle all request in one function and change header.
Edit 2:
in below question exactly say use download.php for download, but i don't have this. for example when user add url [dl.example.com/file.zip] to download manager, file name must be changed to [ex1_file].
Downloading a file with a different name to the stored name