How to determine MIME Type set by htaccess in PHP
Posted
by Ed Marty
on Stack Overflow
See other posts from Stack Overflow
or by Ed Marty
Published on 2010-05-03T14:44:59Z
Indexed on
2010/05/03
14:48 UTC
Read the original article
Hit count: 223
I have a .htaccess file set up to define specific MIME types in directory root/a/b/, and all of the files are in the same directory.
I have a php file that wants to serve those files, in directory root/c/, and needs to determine the content-type as defined by the .htaccess file.
Is there any way to do this? PHP version is 5.1.6. mime_content_type
returns text/plain
, and I'd rather not try to parse the .htaccess file manually. I can move the file if necessary.
© Stack Overflow or respective owner