<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'filesystem.constants.php',
    1 => '定義済み定数',
    2 => '定義済み定数',
  ),
  'up' => 
  array (
    0 => 'book.filesystem.php',
    1 => 'ファイルシステム',
  ),
  'prev' => 
  array (
    0 => 'filesystem.resources.php',
    1 => 'リソース型',
  ),
  'next' => 
  array (
    0 => 'ref.filesystem.php',
    1 => 'ファイルシステム 関数',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    '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">定義済み定数</h1>

 <p class="simpara">
以下の定数が定義されています。
この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、
実行時に動的にロードされている場合のみ使用可能です。
</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">
   <span class="function"><a href="function.file.php" class="function">file()</a></span> の
   <code class="parameter">flags</code> パラメータで使える定数
  </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">
     <code class="parameter">filename</code> を
     <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">
     既存のファイルに追記します。
    </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">
     EOL (行末) 文字を取り除きます。
    </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">
     空行を読み飛ばします。
    </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">
     バイナリモード
     <div class="warning"><strong class="warning">警告</strong>
      <p class="simpara">
       この定数は何の効果もありません。
       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">
     テキストモード
     <div class="warning"><strong class="warning">警告</strong>
      <p class="simpara">
       この定数は何の効果もありません。
       PHP 8.1.0 以降は非推奨になっています。
      </p>
     </div>
    </p>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   <span class="function"><a href="function.glob.php" class="function">glob()</a></span> の
   <code class="parameter">flags</code> パラメータで使える定数
  </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">
     全ての <strong><code><a href="filesystem.constants.php#constant.glob-available-flags">GLOB_<span class="replaceable">*</span></a></code></strong> フラグの組み合わせ。以下と等しいです:
     <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">
     {a,b,c} を &#039;a&#039;, &#039;b&#039;, &#039;c&#039; のいずれかにマッチするように展開します。
    </span>
    <blockquote class="note"><p><strong class="note">注意</strong>: 
     <span class="simpara">
      <strong><code><a href="filesystem.constants.php#constant.glob-brace">GLOB_BRACE</a></code></strong> は Solaris や Alpine Linux のような non GNU なシステムでは使えないことがあります。
     </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">
     (ディレクトリが読み取れない場合のような) 読み取りエラーの場合に停止します。
     デフォルトでは、エラーは無視されます。
    </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">
     スラッシュ(Windows の場合はバックスラッシュ)
     を返されるディレクトリに個別に追加します。
    </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">
     マッチするファイルが見つからない場合に、検索パターンを返します。
    </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">
     バックスラッシュは、メタキャラクタをクォートしません。
    </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">
     ディレクトリ内に存在するかのように、ファイルを返します(ソートは行いません)。
     このフラグを使わない場合、パス名はアルファベット順でソートされます。
    </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">
     パターンにマッチするディレクトリエントリのみを返します。
    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   <span class="function"><a href="function.pathinfo.php" class="function">pathinfo()</a></span> の
   <code class="parameter">flags</code> パラメータで使える定数
  </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">
     pathinfo の全ての情報です。
     連想配列として返されます。
    </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">
     ファイルのディレクトリパス
    </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">
     ディレクトリ名、またはファイル名とその拡張子
    </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">
     ファイルの拡張子
    </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">
     ファイル名（拡張子なし)またはディレクトリ名
    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   <span class="function"><a href="function.parse-ini-file.php" class="function">parse_ini_file()</a></span> と
   <span class="function"><a href="function.parse-ini-string.php" class="function">parse_ini_string()</a></span> の
   <code class="parameter">scanner_mode</code> パラメータで使える定数
  </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">
     通常の INI スキャナモード
    </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">
     生の INI スキャナモード
    </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">
     型つきの INI スキャナモード
    </span>
   </dd>
  
 </dl>

 <dl>
  <strong class="title">
   <span class="function"><a href="function.fnmatch.php" class="function">fnmatch()</a></span> の
   <code class="parameter">flags</code> パラメータで使える定数
  </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">
     バックスラッシュのエスケープを無効にする。
    </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">
     文字列中のスラッシュが、指定したパターン内のスラッシュにのみマッチする。
    </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">
     文字列の先頭のピリオドが、指定したパターン内のピリオドにのみマッチする。
    </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">
     大文字小文字を区別しないマッチを行う。GNU 拡張の一部。
    </span>
   </dd>
  
 </dl>

 <dl id="filesystem.constants.upload">
  <strong class="title">PHP のファイルアップロード関連の定数</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">
     ファイルをディスクに書き込めませんでした。
     この定数の値は <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">
     PHP 拡張機能がファイルアップロードを停止させました。
     PHP はどの拡張機能がファイルアップロードを止めたのかを検出する手段を提供していません。<span class="function"><a href="function.phpinfo.php" class="function">phpinfo()</a></span> で表示される、ロード済みの拡張機能の一覧が手掛かりになるかもしれません。
     この定数の値は <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">
     アップロードされたファイルが、
     HTML フォームで指定された <em>MAX_FILE_SIZE</em>
     を超えています。
     この定数の値は <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">
     アップロードされたファイルが、
     <var class="filename">php.ini</var> の <a href="ini.core.php#ini.upload-max-filesize" class="link">upload_max_filesize</a>
     を超えています。
     この定数の値は <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">
     アップロードされたファイルはありません。
     この定数の値は <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">
     テンポラリフォルダがありません。
     この定数の値は <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">
     エラーはありません。ファイルのアップロードは成功しました。
     この定数の値は <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">
     アップロードされたファイルは一部だけでした。
     この定数の値は <code class="literal">3</code> です。
    </p>
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>