note 27613 added to function.session-cache-limiter

From: Date: Thu, 12 Dec 2002 23:33:00 +0000
Subject: note 27613 added to function.session-cache-limiter
Groups: php.notes 
Request: Send a blank email to php-notes+get-40825@lists.php.net to get a copy of this message
Please note that you DO NOT NEED to specify session_cache_limiter to get downloads work IMHO. With IE6 (and others I imagine), you might have a problem with the filename attribute of Content-Disposition being recognised. In my experience, IE always believed the filename of the download was the name of the script (ie, the URL generating the file, rather than the header being pushed). When adding: Header("Pragma: public"); this was solved. E.g. (Working CSV / opens in Excel in Windows). -- header("Cache-control: private"); header("Content-Type: text/plain"); header("Content-Disposition: attachment; filename=\"$filename\""); header("Pragma: public"); echo "Dogs,Cats,Fish\n"; echo "1,2,3\n"; echo "4,5,6\n"; -- -- http://www.php.net/manual/en/function.session-cache-limiter.php http://master.php.net/manage/user-notes.php?action=edit+27613 http://master.php.net/manage/user-notes.php?action=delete+27613 http://master.php.net/manage/user-notes.php?action=reject+27613

« previous php.notes (#40825) next »