note 32029 added to function.fgetcsv

From: Date: Wed, 14 May 2003 09:24:31 +0000
Subject: note 32029 added to function.fgetcsv
Groups: php.notes 
Request: Send a blank email to php-notes+get-47945@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 -- http://www.php.net/manual/en/function.fgetcsv.php http://master.php.net/manage/user-notes.php?action=edit+32029 http://master.php.net/manage/user-notes.php?action=delete+32029 http://master.php.net/manage/user-notes.php?action=reject+32029

« previous php.notes (#47945) next »