note 32029 rejected from function.fgetcsv by alindeman
| From: | alindeman@php.net | Date: | Wed, 14 May 2003 11:12:05 +0000 |
| Subject: | note 32029 rejected from function.fgetcsv by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-47949@lists.php.net to get a copy of this message | ||
my question is: i have problem with pdf file, the PDF can't open with IE browser, when i open
it asked for download the file or save. it seem does not known the Acrobat reader, even though i
aready setup my acrobat reader to read that PDF.but it work well in another browser like
Netscap. that program i wrote it in php code.
here is the code:
f(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['dateiendung'];
$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);
}
hope everybody can help me and find a mistake,
soklen