How do I enable MIMEMagic on my account?


MIMEMagic is a way for your PHP scripts to read file types without needing the file extension. Instead, MIMEMagic reads the first few lines of code to determine what the file is.

To use MIMEMagic in your PHP scripts, add the following piece of code to your php.ini file:

mime_magic.magicfile = "/etc/httpd/conf/magic"

After saving your php.ini file, you should be able to refer to MIMEMagic.



Article ID: 425
Created On: Mon, Mar 16, 2015 at 3:38 PM
Last Updated On: Thu, Apr 23, 2015 at 12:17 PM

Online URL: https://www.heartinternet.uk/support/article/how-do-i-enable-mimemagic-on-my-account.html