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 Java and what can it do?
Added on Fri, Mar 13, 2015
Can you add this specific PHP or Perl module?
Added on Mon, Mar 16, 2015
What Java support is in place on your servers?
Added on Mon, Mar 16, 2015
What is the absolute path to sendmail?
Added on Mon, Mar 16, 2015
What is ASP?
Added on Fri, Mar 13, 2015