note 71678 deleted from function.mime-content-type by nlopess
| From: | nlopess@php.net | Date: | Sun, 17 Dec 2006 19:19:26 +0000 |
| Subject: | note 71678 deleted from function.mime-content-type by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120686@lists.php.net to get a copy of this message | ||
Note Submitter: adeel at mathideas dot org
----
If mime_content_type($filename) is giving you something wrong when $filename is a .xls file, you can
do something like the following:
<?php
if ($filetype == 'xls') $mimetype = 'application/vnd.ms-excel';
else $mimetype = mime_content_type($filename);
?>