Posted 11 July 2006 - 02:01 PM
I am attempting to use the mime_content_type('filename') function that comes in the mime_magic dll, I followed all instructions to set it up and edited the php.ini file and restarted the server and this morning it worked 2 times then just stopped working for some reason. The script i had running doesnt show the mimetype of files anymore.
$file = "\\pathToFile\\php.gif";
mime_magic.debug = on
mime_magic.magicfile = "c:\PHP\extras\magic.mime"
thanks for any help
Posted 11 July 2006 - 02:03 PM
ini_set('display_errors',true); error_reporting(E_ALL);in the top of the script and see if any errors are returned.
Posted 11 July 2006 - 02:13 PM
Posted 11 July 2006 - 02:22 PM
Posted 11 July 2006 - 02:25 PM
Posted 11 July 2006 - 02:53 PM
Posted 11 July 2006 - 03:09 PM
mime_magic support invalid magic file, disabled
Directive Local Value Master Value
mime_magic.debug On On
mime_magic.magicfile c:\PHP\extras\magic.mime c:\PHP\extras\magic.mime
Posted 11 July 2006 - 03:59 PM
thanks for the help
Posted 11 July 2006 - 05:32 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users