note 96273 deleted from function.xmlwriter-open-uri by danbrown

From: Date: Thu, 18 Feb 2010 14:17:22 +0000
Subject: note 96273 deleted from function.xmlwriter-open-uri by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166118@lists.php.net to get a copy of this message
Note Submitter: DaveRandom ---- While what icepick dot pt at hotmail dot com writes is largely correct, in fact all you need is: <?php header("Content-Disposition: attachment; filename='file_name.xml'"); ?> Whereas: <?php header("Content-Type: text/html/force-download"); ?> Sends what is technically an invalid MIME type. While most HTTP servers will automatically send the correct MIME type (where required), the standards for which header to send under which circumstances are a little unclear. FURTHER READING: http://en.wikipedia.org/wiki/XML_and_MIME http://www.w3.org/TR/xhtml-media-types/ (XHTML specific)

« previous php.notes (#166118) next »