<!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="filesystem.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.filesystem.html">Filesystem Functions</a></div> <div class="up"><a href="book.filesystem.html">Filesystem</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="filesystem.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.seek-set"> <span class="term"> <strong><code>SEEK_SET</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.seek-cur"> <span class="term"> <strong><code>SEEK_CUR</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.seek-end"> <span class="term"> <strong><code>SEEK_END</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.lock-sh"> <span class="term"> <strong><code>LOCK_SH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.lock-ex"> <span class="term"> <strong><code>LOCK_EX</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.lock-un"> <span class="term"> <strong><code>LOCK_UN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.lock-nb"> <span class="term"> <strong><code>LOCK_NB</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.glob-brace"> <span class="term"> <strong><code>GLOB_BRACE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.glob-onlydir"> <span class="term"> <strong><code>GLOB_ONLYDIR</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.glob-mark"> <span class="term"> <strong><code>GLOB_MARK</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.glob-nosort"> <span class="term"> <strong><code>GLOB_NOSORT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.glob-nocheck"> <span class="term"> <strong><code>GLOB_NOCHECK</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.glob-noescape"> <span class="term"> <strong><code>GLOB_NOESCAPE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.glob-available-flags"> <span class="term"> <strong><code>GLOB_AVAILABLE_FLAGS</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.pathinfo-dirname"> <span class="term"> <strong><code>PATHINFO_DIRNAME</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.pathinfo-basename"> <span class="term"> <strong><code>PATHINFO_BASENAME</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.pathinfo-extension"> <span class="term"> <strong><code>PATHINFO_EXTENSION</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.pathinfo-filename"> <span class="term"> <strong><code>PATHINFO_FILENAME</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Since PHP 5.2.0. </span> </dd> </dt> <dt id="constant.file-use-include-path"> <span class="term"> <strong><code>FILE_USE_INCLUDE_PATH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Search for <em><code class="parameter">filename</code></em> in <a href="ini.core.html#ini.include-path" class="link">include_path</a> (since PHP 5). </span> </dd> </dt> <dt id="constant.file-no-default-context"> <span class="term"> <strong><code>FILE_NO_DEFAULT_CONTEXT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.file-append"> <span class="term"> <strong><code>FILE_APPEND</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Append content to existing file. </span> </dd> </dt> <dt id="constant.file-ignore-new-lines"> <span class="term"> <strong><code>FILE_IGNORE_NEW_LINES</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Strip EOL characters (since PHP 5). </span> </dd> </dt> <dt id="constant.file-skip-empty-lines"> <span class="term"> <strong><code>FILE_SKIP_EMPTY_LINES</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Skip empty lines (since PHP 5). </span> </dd> </dt> <dt id="constant.file-binary"> <span class="term"> <strong><code>FILE_BINARY</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Binary mode (since PHP 5.2.7). <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> This constant has no effect, and is only available for <em>forward compatibility</em>. </p> </p></blockquote> </p> </dd> </dt> <dt id="constant.file-text"> <span class="term"> <strong><code>FILE_TEXT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Text mode (since PHP 5.2.7). <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> This constant has no effect, and is only available for <em>forward compatibility</em>. </p> </p></blockquote> </p> </dd> </dt> <dt id="constant.ini-scanner-normal"> <span class="term"> <strong><code>INI_SCANNER_NORMAL</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Normal INI scanner mode (since PHP 5.3). </span> </dd> </dt> <dt id="constant.ini-scanner-raw"> <span class="term"> <strong><code>INI_SCANNER_RAW</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Raw INI scanner mode (since PHP 5.3). </span> </dd> </dt> <dt id="constant.fnm-noescape"> <span class="term"> <strong><code>FNM_NOESCAPE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Disable backslash escaping. </span> </dd> </dt> <dt id="constant.fnm-pathname"> <span class="term"> <strong><code>FNM_PATHNAME</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Slash in string only matches slash in the given pattern. </span> </dd> </dt> <dt id="constant.fnm-period"> <span class="term"> <strong><code>FNM_PERIOD</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Leading period in string must be exactly matched by period in the given pattern. </span> </dd> </dt> <dt id="constant.fnm-casefold"> <span class="term"> <strong><code>FNM_CASEFOLD</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Caseless match. Part of the GNU extension. </span> </dd> </dt> </dl> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="filesystem.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.filesystem.html">Filesystem Functions</a></div> <div class="up"><a href="book.filesystem.html">Filesystem</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>