array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'intro.fileinfo.php', 1 => 'Introduction', ), 'up' => array ( 0 => 'book.fileinfo.php', 1 => 'Fileinfo', ), 'prev' => array ( 0 => 'book.fileinfo.php', 1 => 'Fileinfo', ), 'next' => array ( 0 => 'fileinfo.setup.php', 1 => 'Installing/Configuring', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/fileinfo/book.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
The functions in this module try to guess the content type and encoding of a file by looking for certain magic byte sequences at specific positions within the file. While this is not a bullet proof approach the heuristics used do a very good job.