Hi everybody,
i need some help, does anyone know about this problem or have an idear to solved this problem?
i have problem with pdf, i can't open with IE window browser(my IE is 6.0), when i open it., it asked for download that does not understand the acrobat reader. but it work well with
nescap browser. and i thought it was because of my php code problem with Header.
and other thing am not sure.
here is my code.
if(file_exists($filename)){
$fp = fopen($filename, 'r');
header("Last-Modified: Thu, 17 Oct 2002 14:57:04 GMT");
header("Accept-Ranges: bytes");
// header("Content-Length: ".filesize($filename));
header("Cache-control: private"); // fix for IE
// header("Cache-control: public"); // fix for IE
$save_as_name = $row['titel'].".".$row['dataextension'];
$save_as_name = ereg_replace(" ","_",$save_as_name);
if($alternative!=1)
header("Content-Disposition: inline;
filename=\"$save_as_name\"");
else
header("Content-Disposition: attachment;
filename=\"$save_as_name\"");
header("Content-Type: ".$row['mimetyp']);
fpassthru($fp);
fclose($fp);
}
else
echo("error opening file");
Hope someone can solve this problem,
soklen, 🙂