#37135 [Opn->Bgs]: header(Content-Type: mime_type) must have a leading before the mime_type

From: Date: Wed, 19 Apr 2006 10:43:37 +0000
Subject: #37135 [Opn->Bgs]: header(Content-Type: mime_type) must have a leading before the mime_type
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95986@lists.php.net to get a copy of this message
ID: 37135 Updated by: tony2001@php.net Reported By: nbari at mac dot com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: Mac OS X version 10.4.6 PHP Version: 5.1.2 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2006-04-19 10:39:30] nbari at mac dot com Description: ------------ a leading slash must be used on the mime_tye to get Content- Type to work: header("Content-Type: audio/x-ms-wma"); do not work header("Content-Type: /audio/x-ms-wma"); it works Reproduce code: --------------- <?php header("Content-Type: audio/x-ms-wma"); header("Content-Disposition: filename=\"file.wma\""); readfile("/Volumes/RamDisk/file.wma"); ?> if audio/x-ms-wma is replaced with /audio/x-ms-wma so it looks like : header("Content-Type: /audio/x-ms-wma"); the code works. with out the leading / the code do not work. Expected result: ---------------- the windows media player to open the wma file or the option for saving the file. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37135&edit=1

« previous php.bugs (#95986) next »