by kpete32 » 27. March 2018 21:15
I have a few PHP files that are used to create webpages that allow users to download excel spreadsheets. These PHP files were on a windows 2003 server running apache 2.0 and they work properly on this server. When I open a browser and navigate to the webpage I am able to click on the download button for the excel spread sheet and windows asks if I would like to download or save the file. I moved the same PHP files to a windows 2012 r2 server and I am now using xammp with apache 2.2.14 and the excel spreadsheet now opens in a webpage instead of asking to be downloaded. I am not sure how to force this file to ask to be downloaded.