finfo_open finfo->__construct Create a new fileinfo resource &reftitle.description; &style.procedural; resourcefinfo_open intoptionsFILEINFO_NONE stringmagic_file&null; &style.oop; (constructor): finfo __construct intoptionsFILEINFO_NONE stringmagic_file&null; This function opens a magic database and returns its resource. &reftitle.parameters; options One or disjunction of more Fileinfo constants. magic_file Name of a magic database file, usually something like /path/to/magic.mime. If not specified, the MAGIC environment variable is used. If this variable is not set either, /usr/share/misc/magic is used by default. A .mime and/or .mgc suffix is added if needed. Passing NULL or an empty string will be equivalent to the default value. &reftitle.returnvalues; Returns a magic database resource on success&return.falseforfailure;. &reftitle.examples; Object oriented style file($filename); ?> ]]> Procedural style ]]> &example.outputs; &reftitle.seealso; finfo_close