I'm working on a site which dynamically generates tables of rates in CSV
format. The script which does the work is called generate_stats.php. Here's
the header
header ("Content-type: application/octet-stream");
header ("Content-Disposition: attachment; filename=query-results.csv");
header ("Pragma: no-cache");
header ("Expires: 0");
Now in Mozilla, the user is correctly asked if they want to save or open a
file called query-results.csv
However in IE5 the user is asked if they want to open or save a file called
generate_stats.php.
If they open they're then asked if they want to open or save a file called
query-results.csv.
Does anyone know how I can arrange for IE to immediately open a file called
query-results.csv?
Thanks
--
Bryan