note 27903 added to function.header

From: Date: Tue, 24 Dec 2002 06:16:44 +0000
Subject: note 27903 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-41245@lists.php.net to get a copy of this message
It took me awhile to figure this one out, but using output buffering (at least for ob_gzhandler) with MSIE 6 can keep the filename parameter of Content-Disposition from working properly (Not sure about other browsers...). In my case, I had a file download.php with this: header("Content-Type: application/x-ms-download"); header("Content-Disposition: attachment; filename=theme.xmb"); ob_start("ob_gzhandler") Normally, that would offer a default filename of theme.xmb. But in this case, with the ob_start on, the browser attempts to name the file by the url; it wanted to name the file download, with the file type being a document. -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+27903 http://master.php.net/manage/user-notes.php?action=delete+27903 http://master.php.net/manage/user-notes.php?action=reject+27903

« previous php.notes (#41245) next »