hello...
I am trying to dump content into a file, which automatically calls up a file-save dialog with an msie (like phpmyadmin when dumping a database)
this is how I went about doing it:
header('Content-Type: application/octetstream');
header('Content-Disposition: attachment; filename="File1.csv"');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
echo $buff;
However it doesnt work correctly... When I call up the script it brings the save or open dialog, but once i choose one of them it brings an error message box, saying that:
The file can not be transfered. The internet site could not be opened. Either it is not reachable or could not be found. Try again later. (that was my on the fly translation ;o)
What am I doing wrong?
Thanks
Jophus