Does PHP provide an instance of Apache Mime-Type to display extensions in any way or form.
Thus, Apache usually has a list of file extensions (.gif, .pdf) that it maps to the Mime-Types list (image / gif, application / pdf, etc.) in a file, usually called mime. types. Is there a way to get a list of these mappings for the current apache process via PHP?
Lacking this, is there any way for PHP to ask Apache which mime.type file it uses?
source
share