note 15714 added to function.header
| From: | mqm at no-spam-pleeease dot magma dot ca | Date: | Thu, 27 Sep 2001 16:32:28 +0000 |
| Subject: | note 15714 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18372@lists.php.net to get a copy of this message | ||
I haven't seen people automatically computing the MIME type for the file being served. All I
see here is something like
header("Content-type: image/gif");
Well, if I can serve a multitude of files & file types, how can I look at the file name (which I
dynamically compute) & determine its MIME type ? Is there a PHP function for that ? Or maybe
I'll have to implement my own ? thanks !
--
http://www.php.net/manual/en/function.header.php
http://master.php.net/manage/user-notes.php?action=edit+15714
http://master.php.net/manage/user-notes.php?action=delete+15714
http://master.php.net/manage/user-notes.php?action=reject+15714