0

I am currently working on a CMS and I want the users to download .xls and .csv files through php. I tried literally everything I found to implement it, but everytime it was displayed in the html instead of downloading, and it happens when I try to download a simple .txt file too, so basically for every file download. I tried the readfile() method and PHPExcel's save('php://output'); command but none of them downloaded the file. I wonder if I should look for the bug not in my code but somewhere else (.htaccess, apache settings maybe?). Thanks in advance for your help :)

0 Answers0