FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Php, mime_content_type() problem





Seregwethrin
Hello server admins;

There is an mime_content_type error.

Function example

Code:
echo mime_content_type("bg.gif");


and it'll prints (but now prints Fatal error: Call to undefined function: mime_content_type() in /home/seregwet/public_html/attachment.x on line 15)

Code:
image/gif


But this is not work on server. I'll find a way to run it. Edit c:/windows/php.ini or other php.ini dir.

Code:

[mime_magic]
mime_magic.debug = On
mime_magic.magicfile = "c:\php\magic.mime" //Change dir

//If you can't find the lines, add it to php.ini


And
Code:
;extension=php_mime_magic.dll

to
Code:
extension=php_mime_magic.dll


Good Works...
Bondings
I think I'll have to disappoint you. I have absolutely no knowledge about mime types. Maybe someone else will be able to help you.
Seregwethrin
Crying or Very sad
Maka
Sorry dont know either Crying or Very sad Sad .
mathiaus
This link should prove useful unless youve found another way of doing it.
http://us3.php.net/manual/en/function.mime-content-type.php#52388
Related topics
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.