header
Posted: Sun Apr 20, 2003 7:36 pm
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.
<?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.