note 34817 added to ref.mime-magic

From: Date: Thu, 07 Aug 2003 14:58:09 +0000
Subject: note 34817 added to ref.mime-magic
Groups: php.notes 
Request: Send a blank email to php-notes+get-53576@lists.php.net to get a copy of this message
I tried to use the default magic.mime file on /usr/share and I got few problems like seg faults and incorrect mimetypes, specially from m$-office. The workaround for this problem is use the default magic file for the apache installation (for who uses the apache). This file is set by default in ServerRoot/conf/magic. Then you should set (or reset) the directive mime_magic.magicfile = "/etc/httpd/conf/magic" (change the obsolute path to yours...) in php.ini file. Restart the web server, take a look on phpinfo() functions to check if all changes were made and enjoy it. Remember to compile php with option --enable-mime-magic (version <= 4.3.1) or --with-mime-magic (version >= 4.3.2) Leandro. ---- Manual Page -- http://www.php.net/manual/en/ref.mime-magic.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34817 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34817&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34817&report=yes

« previous php.notes (#53576) next »