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
How do I connect to my site using Dreamweaver?
Added on Fri, Mar 13, 2015
How do I connect to my MySQL database from my Perl script?
Added on Thu, Feb 26, 2015
Can I use File eXchange Protocol (FXP) for site-to-site transfers?
Added on Fri, Mar 13, 2015
What is Python?
Added on Fri, Mar 13, 2015
What is PHP?
Added on Fri, Mar 13, 2015