PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Runtime Configuration

The behaviour of these functions is affected by settings in php.ini.

Mimetype configuration options
Name Default Changeable Changelog
mime_magic.debug "0" PHP_INI_SYSTEM Available since PHP 5.0.0.
mime_magic.magicfile "/path/to/php/magic.mime" PHP_INI_SYSTEM Available since PHP 4.3.0.
For further details and definitions of the PHP_INI_* modes, see the Where a configuration setting may be set.

Here's a short explanation of the configuration directives.

mime_magic.debug bool

Enable/disable debugging.

mime_magic.magicfile string

The path to the magic.mime file.

PHP Manual