note 31475 added to function.header

From: Date: Wed, 23 Apr 2003 12:34:38 +0000
Subject: note 31475 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-46979@lists.php.net to get a copy of this message
In response to: [rlourenco at uol dot com dot br 21-Feb-2002 06:26] Please, note that Macintosh computers have a very strict file type assignment system. if a word document is downloaded to a macintosh with Netscape 7 without the trailing ".doc" and the header sent is: header("Content-type: application/octet-stream"); ...the user won't be able to open the file with Microsoft Word. This is due to the file type registered by the file system. The type of a file is not very easily changed on a MacOS system, so to avoid that particular problem, send this header instead: header("Content-type: application/msword"); -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+31475 http://master.php.net/manage/user-notes.php?action=delete+31475 http://master.php.net/manage/user-notes.php?action=reject+31475

« previous php.notes (#46979) next »