<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Predefined Constants</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="fileinfo.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.fileinfo.html">Fileinfo Functions</a></div> <div class="up"><a href="book.fileinfo.html">Fileinfo</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="fileinfo.constants" class="appendix"> <h1>Predefined Constants</h1> <p class="simpara"> The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. </p> <dl> <dt id="constant.fileinfo-none"> <span class="term"> <strong><code>FILEINFO_NONE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> No special handling. </span> </dd> </dt> <dt id="constant.fileinfo-symlink"> <span class="term"> <strong><code>FILEINFO_SYMLINK</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Follow symlinks. </span> </dd> </dt> <dt id="constant.fileinfo-mime-type"> <span class="term"> <strong><code>FILEINFO_MIME_TYPE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Return the mime type. </span> <span class="simpara"> Available since PHP 5.3.0. </span> </dd> </dt> <dt id="constant.fileinfo-mime-encoding"> <span class="term"> <strong><code>FILEINFO_MIME_ENCODING</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Return the mime encoding of the file. </span> <span class="simpara"> Available since PHP 5.3.0. </span> </dd> </dt> <dt id="constant.fileinfo-mime"> <span class="term"> <strong><code>FILEINFO_MIME</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Return the mime type and mime encoding as defined by RFC 2045. </span> </dd> </dt> <dt id="constant.fileinfo-compress"> <span class="term"> <strong><code>FILEINFO_COMPRESS</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Decompress compressed files. </span> <span class="simpara"> Disabled since PHP 5.3.0 due to thread safety issues. </span> </dd> </dt> <dt id="constant.fileinfo-devices"> <span class="term"> <strong><code>FILEINFO_DEVICES</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Look at the contents of blocks or character special devices. </span> </dd> </dt> <dt id="constant.fileinfo-continue"> <span class="term"> <strong><code>FILEINFO_CONTINUE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Return all matches, not just the first. </span> </dd> </dt> <dt id="constant.fileinfo-preserve-atime"> <span class="term"> <strong><code>FILEINFO_PRESERVE_ATIME</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> If possible preserve the original access time. </span> </dd> </dt> <dt id="constant.fileinfo-raw"> <span class="term"> <strong><code>FILEINFO_RAW</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Don't translate unprintable characters to a <em>\ooo</em> octal representation. </span> </dd> </dt> </dl> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="fileinfo.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.fileinfo.html">Fileinfo Functions</a></div> <div class="up"><a href="book.fileinfo.html">Fileinfo</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>