Home » Categories » Multiple Categories

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.

1 (2)
Article Rating (2 Votes)
Rate this article
  • Icon PDFExport to PDF
Related Articles
What is ASP?
Added on Fri, Mar 13, 2015
Do you run PHP as a CGI script or Apache module?
Added on Mon, Mar 16, 2015
Is ASP.NET 3.5 available, and why does my script say that there is only Version 2?
Added on Mon, Mar 16, 2015
What are the correct file permissions for a PHP file?
Added on Mon, Mar 16, 2015
How do I install WordPress?
Added on Mon, Mar 16, 2015