note 87094 added to function.header

From: Date: Wed, 19 Nov 2008 09:03:38 +0000
Subject: note 87094 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-146692@lists.php.net to get a copy of this message
For CSV download program try with this. Support IE and other common browsers under SSL and Non SSL environment. <?php /** * Title: CSV download method. * * @author Taslim Mazumder Sohel * @deprecated 1.0 - 2008/11/19 * * Note: Work perfect under SSL and Non SSL for IE and other common browsers. * Also support multi byte CSV file name. */ header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Description: File Transfer"); header('Content-Type: application/html; charset=Windows-31J'.'\r\n'); header('Content-Disposition: attachment; filename="'.mb_convert_encoding("テストFileName", "Windows-31J", "auto")."_".date("Ymd").'.csv"'); header("Content-Transfer-Encoding: binary"); echo "\"AAA\",\"BBBBB\",\"CCCCCCCC\"\n"; echo "\"A11\",\"BBB11\",\"CCCCCC11\""; ?> ---- Server IP: 219.94.145.73 Probable Submitter: 210.251.252.137 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/87094 Del: integrated -- https://master.php.net/note/delete/87094/integrated Del: useless -- https://master.php.net/note/delete/87094/useless Del: bad code -- https://master.php.net/note/delete/87094/bad+code Del: spam -- https://master.php.net/note/delete/87094/spam Del: non-english -- https://master.php.net/note/delete/87094/non-english Del: in docs -- https://master.php.net/note/delete/87094/in+docs Del: other reasons-- https://master.php.net/note/delete/87094 Reject -- https://master.php.net/note/reject/87094 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#146692) next »