Page 1 of 1

header

Posted: Sun Apr 20, 2003 7:36 pm
by antas
How can I use header to open a msword doc in the browser without having that file tranfer window appearing asking if I want to download the file or open it? I've tried something like this:
<?php
header("Cache-control: private");
header("Content-type: application/x-msword");
header("Content-Disposition: filename=".$_GET['file']);
?>
But still that damn window insists in appearing.

Posted: Sun Apr 20, 2003 8:29 pm
by volka
users may choose to have documents with certain mime-type opened automatically but you can't force it server-side.