<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.filesystem.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'filesystem.constants.php',
    1 => 'Costanti predefinite',
    2 => 'Costanti predefinite',
  ),
  'up' => 
  array (
    0 => 'book.filesystem.php',
    1 => 'Filesystem',
  ),
  'prev' => 
  array (
    0 => 'filesystem.resources.php',
    1 => 'Tipi di risorse',
  ),
  'next' => 
  array (
    0 => 'ref.filesystem.php',
    1 => 'Filesystem Funzioni',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/filesystem/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="filesystem.constants" class="appendix">
 <h1 class="title">Costanti predefinite</h1>

 <p class="simpara">
Queste costanti sono definite da questa estensione e 
sono disponibili solo se l&#039;estensione è stata compilata
nel PHP o se è stata caricata dinamicamente a runtime.
</p>
 <dl>
  
   <dt id="constant.seek-set">
    <strong><code><a href="filesystem.constants.php#constant.seek-set">SEEK_SET</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.seek-cur">
    <strong><code><a href="filesystem.constants.php#constant.seek-cur">SEEK_CUR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.seek-end">
    <strong><code><a href="filesystem.constants.php#constant.seek-end">SEEK_END</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.lock-sh">
    <strong><code><a href="filesystem.constants.php#constant.lock-sh">LOCK_SH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.lock-ex">
    <strong><code><a href="filesystem.constants.php#constant.lock-ex">LOCK_EX</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.lock-un">
    <strong><code><a href="filesystem.constants.php#constant.lock-un">LOCK_UN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.lock-nb">
    <strong><code><a href="filesystem.constants.php#constant.lock-nb">LOCK_NB</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   Available <code class="parameter">flags</code> for
   <span class="function"><a href="function.file.php" class="function">file()</a></span>
  </strong>

  
   <dt id="constant.file-use-include-path">
    <strong><code><a href="filesystem.constants.php#constant.file-use-include-path">FILE_USE_INCLUDE_PATH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Search for <code class="parameter">filename</code> in
     <a href="ini.core.php#ini.include-path" class="link">include_path</a>.
    </span>
   </dd>
  
  
   <dt id="constant.file-no-default-context">
    <strong><code><a href="filesystem.constants.php#constant.file-no-default-context">FILE_NO_DEFAULT_CONTEXT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    </span>
   </dd>
  
  
   <dt id="constant.file-append">
    <strong><code><a href="filesystem.constants.php#constant.file-append">FILE_APPEND</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Append content to existing file.
    </span>
   </dd>
  
  
   <dt id="constant.file-ignore-new-lines">
    <strong><code><a href="filesystem.constants.php#constant.file-ignore-new-lines">FILE_IGNORE_NEW_LINES</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Strip EOL characters.
    </span>
   </dd>
  
  
   <dt id="constant.file-skip-empty-lines">
    <strong><code><a href="filesystem.constants.php#constant.file-skip-empty-lines">FILE_SKIP_EMPTY_LINES</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Skip empty lines.
    </span>
   </dd>
  

  
   <dt id="constant.file-binary">
    <strong><code><a href="filesystem.constants.php#constant.file-binary">FILE_BINARY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     Binary mode.
     <div class="warning"><strong class="warning">Avviso</strong>
      <p class="simpara">
       This constant has no effect, and is deprecated as of PHP 8.1.0.
      </p>
     </div>
    </p>
   </dd>
  

  
   <dt id="constant.file-text">
    <strong><code><a href="filesystem.constants.php#constant.file-text">FILE_TEXT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     Text mode.
     <div class="warning"><strong class="warning">Avviso</strong>
      <p class="simpara">
       This constant has no effect, and is deprecated as of PHP 8.1.0.
      </p>
     </div>
    </p>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   Available <code class="parameter">flags</code> for
   <span class="function"><a href="function.glob.php" class="function">glob()</a></span>
  </strong>

  
   <dt id="constant.glob-available-flags">
    <strong><code><a href="filesystem.constants.php#constant.glob-available-flags">GLOB_AVAILABLE_FLAGS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     All <strong><code><a href="filesystem.constants.php#constant.glob-available-flags">GLOB_<span class="replaceable">*</span></a></code></strong> flags combined.
     Equivalent to <code class="literal">0</code> | <strong><code><a href="filesystem.constants.php#constant.glob-brace">GLOB_BRACE</a></code></strong> |
     <strong><code><a href="filesystem.constants.php#constant.glob-mark">GLOB_MARK</a></code></strong> | <strong><code><a href="filesystem.constants.php#constant.glob-nosort">GLOB_NOSORT</a></code></strong> |
     <strong><code><a href="filesystem.constants.php#constant.glob-nocheck">GLOB_NOCHECK</a></code></strong> | <strong><code><a href="filesystem.constants.php#constant.glob-noescape">GLOB_NOESCAPE</a></code></strong> |
     <strong><code><a href="filesystem.constants.php#constant.glob-err">GLOB_ERR</a></code></strong> | <strong><code><a href="filesystem.constants.php#constant.glob-onlydir">GLOB_ONLYDIR</a></code></strong>
    </span>
   </dd>
  
  
   <dt id="constant.glob-brace">
    <strong><code><a href="filesystem.constants.php#constant.glob-brace">GLOB_BRACE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Expands {a,b,c} to match &#039;a&#039;, &#039;b&#039;, or &#039;c&#039;
    </span>
    <blockquote class="note"><p><strong class="note">Nota</strong>: 
     <span class="simpara">
      <strong><code><a href="filesystem.constants.php#constant.glob-brace">GLOB_BRACE</a></code></strong> is not available on some non GNU systems,
      like Solaris or Alpine Linux.
     </span>
    </p></blockquote>
   </dd>
  
  
   <dt id="constant.glob-err">
    <strong><code><a href="filesystem.constants.php#constant.glob-err">GLOB_ERR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Stop on read errors (like unreadable directories),
     by default errors are ignored.
    </span>
   </dd>
  
  
   <dt id="constant.glob-mark">
    <strong><code><a href="filesystem.constants.php#constant.glob-mark">GLOB_MARK</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Adds a slash (a backslash on Windows) to each directory returned
    </span>
   </dd>
  
  
   <dt id="constant.glob-nocheck">
    <strong><code><a href="filesystem.constants.php#constant.glob-nocheck">GLOB_NOCHECK</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Return the search pattern if no files matching it were found
    </span>
   </dd>
  
  
   <dt id="constant.glob-noescape">
    <strong><code><a href="filesystem.constants.php#constant.glob-noescape">GLOB_NOESCAPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Backslashes do not quote metacharacters
    </span>
   </dd>
  
  
   <dt id="constant.glob-nosort">
    <strong><code><a href="filesystem.constants.php#constant.glob-nosort">GLOB_NOSORT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Return files as they appear in the directory (no sorting).
     When this flag is not used, the pathnames are sorted alphabetically
    </span>
   </dd>
  
  
   <dt id="constant.glob-onlydir">
    <strong><code><a href="filesystem.constants.php#constant.glob-onlydir">GLOB_ONLYDIR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Return only directory entries which match the pattern
    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   Available <code class="parameter">flags</code> for
   <span class="function"><a href="function.pathinfo.php" class="function">pathinfo()</a></span>
  </strong>
  
   <dt id="constant.pathinfo-all">
    <strong><code><a href="filesystem.constants.php#constant.pathinfo-all">PATHINFO_ALL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     All parts of the pathinfo
     returned as an associative array.
    </span>
   </dd>
  
  
   <dt id="constant.pathinfo-dirname">
    <strong><code><a href="filesystem.constants.php#constant.pathinfo-dirname">PATHINFO_DIRNAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     The path of the directory or file.
    </span>
   </dd>
  
  
   <dt id="constant.pathinfo-basename">
    <strong><code><a href="filesystem.constants.php#constant.pathinfo-basename">PATHINFO_BASENAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     The name of the directory or
     the name and extension of the file.
    </span>
   </dd>
  
  
   <dt id="constant.pathinfo-extension">
    <strong><code><a href="filesystem.constants.php#constant.pathinfo-extension">PATHINFO_EXTENSION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     The extension of the file.
    </span>
   </dd>
  
  
   <dt id="constant.pathinfo-filename">
    <strong><code><a href="filesystem.constants.php#constant.pathinfo-filename">PATHINFO_FILENAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     The name of the file (without the extension)
     or directory.
    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   Available <code class="parameter">scanner_mode</code>s for
   <span class="function"><a href="function.parse-ini-file.php" class="function">parse_ini_file()</a></span> and
   <span class="function"><a href="function.parse-ini-string.php" class="function">parse_ini_string()</a></span>
  </strong>

  
   <dt id="constant.ini-scanner-normal">
    <strong><code><a href="filesystem.constants.php#constant.ini-scanner-normal">INI_SCANNER_NORMAL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Normal INI scanner mode.
    </span>
   </dd>
  

  
   <dt id="constant.ini-scanner-raw">
    <strong><code><a href="filesystem.constants.php#constant.ini-scanner-raw">INI_SCANNER_RAW</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Raw INI scanner mode.
    </span>
   </dd>
  

  
   <dt id="constant.ini-scanner-typed">
    <strong><code><a href="filesystem.constants.php#constant.ini-scanner-typed">INI_SCANNER_TYPED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Typed INI scanner mode.
    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   Available <code class="parameter">flags</code> for
   <span class="function"><a href="function.fnmatch.php" class="function">fnmatch()</a></span>
  </strong>

  
   <dt id="constant.fnm-noescape">
    <strong><code><a href="filesystem.constants.php#constant.fnm-noescape">FNM_NOESCAPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Disable backslash escaping.
    </span>
   </dd>
  

  
   <dt id="constant.fnm-pathname">
    <strong><code><a href="filesystem.constants.php#constant.fnm-pathname">FNM_PATHNAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Slash in string only matches slash in the given pattern.
    </span>
   </dd>
  

  
   <dt id="constant.fnm-period">
    <strong><code><a href="filesystem.constants.php#constant.fnm-period">FNM_PERIOD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Leading period in string must be exactly matched by period in the given pattern.
    </span>
   </dd>
  

  
   <dt id="constant.fnm-casefold">
    <strong><code><a href="filesystem.constants.php#constant.fnm-casefold">FNM_CASEFOLD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Caseless match. Part of the GNU extension.
    </span>
   </dd>
  
 </dl>

 <dl id="filesystem.constants.upload">
  <strong class="title">PHP File Upload Constants</strong>
  
   <dt id="constant.upload-err-cant-write">
    <strong><code><a href="filesystem.constants.php#constant.upload-err-cant-write">UPLOAD_ERR_CANT_WRITE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     Failed to write file to disk.
     The value of the constant is <code class="literal">7</code>.
    </p>
   </dd>
  
  
   <dt id="constant.upload-err-extension">
    <strong><code><a href="filesystem.constants.php#constant.upload-err-extension">UPLOAD_ERR_EXTENSION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     A PHP extension stopped the file upload. PHP does not
     provide a way to ascertain which extension caused the file upload to
     stop; examining the list of loaded extensions with <span class="function"><a href="function.phpinfo.php" class="function">phpinfo()</a></span> may help.
     The value of the constant is <code class="literal">8</code>.
    </p>
   </dd>
  
  
   <dt id="constant.upload-err-form-size">
    <strong><code><a href="filesystem.constants.php#constant.upload-err-form-size">UPLOAD_ERR_FORM_SIZE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     The uploaded file exceeds the <em>MAX_FILE_SIZE</em>
     directive that was specified in the HTML form.
     The value of the constant is <code class="literal">2</code>.
    </p>
   </dd>
  
  
   <dt id="constant.upload-err-ini-size">
    <strong><code><a href="filesystem.constants.php#constant.upload-err-ini-size">UPLOAD_ERR_INI_SIZE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     The uploaded file exceeds the
     <a href="ini.core.php#ini.upload-max-filesize" class="link">upload_max_filesize</a>
     directive in <var class="filename">php.ini</var>.
     The value of the constant is <code class="literal">1</code>.
    </p>
   </dd>
  
  
   <dt id="constant.upload-err-no-file">
    <strong><code><a href="filesystem.constants.php#constant.upload-err-no-file">UPLOAD_ERR_NO_FILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     No file was uploaded.
     The value of the constant is <code class="literal">4</code>.
    </p>
   </dd>
  
  
   <dt id="constant.upload-err-no-tmp-dir">
    <strong><code><a href="filesystem.constants.php#constant.upload-err-no-tmp-dir">UPLOAD_ERR_NO_TMP_DIR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     Missing a temporary folder.
     The value of the constant is <code class="literal">6</code>.
    </p>
   </dd>
  
  
   <dt id="constant.upload-err-ok">
    <strong><code><a href="filesystem.constants.php#constant.upload-err-ok">UPLOAD_ERR_OK</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     There is no error, the file uploaded with success.
     The value of the constant is <code class="literal">0</code>.
    </p>
   </dd>
  
  
   <dt id="constant.upload-err-partial">
    <strong><code><a href="filesystem.constants.php#constant.upload-err-partial">UPLOAD_ERR_PARTIAL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     The uploaded file was only partially uploaded.
     The value of the constant is <code class="literal">3</code>.
    </p>
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>