note 24851 added to function.header

From: Date: Fri, 30 Aug 2002 08:25:03 +0000
Subject: note 24851 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-36025@lists.php.net to get a copy of this message
Here is a comprehensive list of MIME types you can send using the Content-Type header in a PHP array format and easy usage. Taken directly from Apache2's mime.type file, contains types for 138 file extensions: http://www.hivemail.com/mime.types.phps If $filename contains the name of the file you want to serve, use this code to send the right type: header('Content-Type: ' . $mimetypes[substr(strrchr($filename, '.'), 1)]); -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+24851 http://master.php.net/manage/user-notes.php?action=delete+24851 http://master.php.net/manage/user-notes.php?action=reject+24851

« previous php.notes (#36025) next »