Hi,

I know that magic.mime is depreciated but i would like to test a simple
thing. However, i have some issues with it.... it does not work :-(

basically, my php.ini file points as following :

mime_magic.magicfile = "x:\PHP511\extras\magic.mime"


I also enabled the dll via :

extension=php_mime_magic.dll


when i check the settings via phpinfo() i have everything ok (i mean the
mime_magic module is loaded).

However, if i write a simple PHP test page as following :

error_reporting(E_ALL );
echo "<br>Mime (PNG) : ".mime_content_type('image.png');
echo "<br>Mime (JPG) : ".mime_content_type('kader.jpg');
echo "<br>Mime (PHP) : ".mime_content_type('test_mime.php');
echo "<br>";



i get nothing from function mime_content_type().

Where could be the problem ?
thanks a lot,

--
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.1.4
Apache 2.0.58
PHP 5

Reply via email to