bug mime type header

From: Date: Wed, 19 Sep 2012 13:16:42 +0000
Subject: bug mime type header
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-14736@lists.php.net to get a copy of this message
Hello, I have php 3.3.6 and i have some problems when i want to make header like this : $filename = "17285.xls"; header("Content-Type: application/ms-excel"); header("Content-disposition: /attachment;filename=NomDuFichier.xls"); readfile($filename); I have this problem but friends who have version 3.3.3 not have this problem. My generated file is corrupt . Why ? it's a bug ? is there a solution ? Best regards Emilie -- _______________________________ *Emilie Gennari* UMR MISTEA (*bat 29*) INRA - Centre de Montpellier 2 Place Pierre Viala - 34060 Montpellier Cedex 1 Tel. : 04.99.61.60.06 mail. : emiliegennari@gmail.com <anne.tireau@supagro.inra.fr>

« previous php.webmaster (#14736) next »