I use "header" to force download of text data on Windows desktops.
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=$file_ name");
$file_name is a file name like "my_file.tx t".
It works well with IE6. With Netscape7, the Save dialog box has "PHP" set as
file type, which causes the file to be downloaded by default to
"my_file.txt.ph p".
It can of course be changed manually in the Save dialog box, but has anyone
an idea where this "PHP" setting comes from?
Thanks.
Pierre
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=$file_ name");
$file_name is a file name like "my_file.tx t".
It works well with IE6. With Netscape7, the Save dialog box has "PHP" set as
file type, which causes the file to be downloaded by default to
"my_file.txt.ph p".
It can of course be changed manually in the Save dialog box, but has anyone
an idea where this "PHP" setting comes from?
Thanks.
Pierre