note 52388 added to function.mime-content-type

From: Date: Fri, 29 Apr 2005 10:31:37 +0000
Subject: note 52388 added to function.mime-content-type
Groups: php.notes 
Request: Send a blank email to php-notes+get-88743@lists.php.net to get a copy of this message
if you arern't allowed to use mime_content_type, you can use this function function mime_content_type_($filename) { $mime = array( '.3dmf' => 'x-world/x-3dmf', '.a' => 'application/octet-stream', '.aab' => 'application/x-authorware-bin', [... i have to cut, the text is too long :/ ..] '.xwd' => 'image/x-xwd', '.xyz' => 'chemical/x-pdb', '.z' => 'application/x-compressed', '.zip' => 'application/x-zip-compressed', '.zoo' => 'application/octet-stream', '.zsh' => 'text/x-script.zsh', ); return $mime[strrchr($filename, '.')]; } ---- Manual Page -- http://www.php.net/manual/en/function.mime-content-type.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52388 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52388&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52388&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52388&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52388&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52388&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52388&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88743) next »