The purpose is to download the dumped backup.sql
file after running the sql dumping script (from PHP). Normally, the dumped .sql
file is outputted (written) on the server. Then when i make a href link to that file like Download File
, the file is opening inside the browser on clicking, instead of being downloading.
How it could be done?