<?php header('Content-type:text/csv'); ?>
Is their any way to configure httpd.conf for prompting download for any csv file requested?? header("Content-type: text/x-csv"); header("Content-Disposition: attachment; filename=$filename"); Can content-Disposition configured in httpd.conf?
The same code is worning fine in my Windows XAMPP Server...
set location.href = a.php (as example). then set header content of that a.php file to csv type and then echo your csv file(see google help). Maybe this will help you. see header content for csv file for html page from google.