mirror of
https://github.com/php/doc-ja.git
synced 2026-03-24 07:02:08 +01:00
582 lines
15 KiB
XML
582 lines
15 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 68ca0a46a0db2f5d5858127f8c02c502b2519af2 Maintainer: mumumu Status: ready -->
|
|
<appendix xml:id="filesystem.constants" xmlns="http://docbook.org/ns/docbook">
|
|
&reftitle.constants;
|
|
&extension.constants;
|
|
<variablelist>
|
|
<varlistentry xml:id="constant.seek-set">
|
|
<term>
|
|
<constant>SEEK_SET</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.seek-cur">
|
|
<term>
|
|
<constant>SEEK_CUR</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.seek-end">
|
|
<term>
|
|
<constant>SEEK_END</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.lock-sh">
|
|
<term>
|
|
<constant>LOCK_SH</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.lock-ex">
|
|
<term>
|
|
<constant>LOCK_EX</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.lock-un">
|
|
<term>
|
|
<constant>LOCK_UN</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.lock-nb">
|
|
<term>
|
|
<constant>LOCK_NB</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
<variablelist>
|
|
<title>
|
|
<function>file</function> の
|
|
<parameter>flags</parameter> パラメータで使える定数
|
|
</title>
|
|
|
|
<varlistentry xml:id="constant.file-use-include-path">
|
|
<term>
|
|
<constant>FILE_USE_INCLUDE_PATH</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
<parameter>filename</parameter> を
|
|
<link linkend="ini.include-path">include_path</link>
|
|
から探します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.file-no-default-context">
|
|
<term>
|
|
<constant>FILE_NO_DEFAULT_CONTEXT</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.file-append">
|
|
<term>
|
|
<constant>FILE_APPEND</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
既存のファイルに追記します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.file-ignore-new-lines">
|
|
<term>
|
|
<constant>FILE_IGNORE_NEW_LINES</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
EOL (行末) 文字を取り除きます。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.file-skip-empty-lines">
|
|
<term>
|
|
<constant>FILE_SKIP_EMPTY_LINES</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
空行を読み飛ばします。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.file-binary">
|
|
<term>
|
|
<constant>FILE_BINARY</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
バイナリモード
|
|
<warning>
|
|
<simpara>
|
|
この定数は何の効果もありません。
|
|
PHP 8.1.0 以降は非推奨になっています。
|
|
</simpara>
|
|
</warning>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.file-text">
|
|
<term>
|
|
<constant>FILE_TEXT</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
テキストモード
|
|
<warning>
|
|
<simpara>
|
|
この定数は何の効果もありません。
|
|
PHP 8.1.0 以降は非推奨になっています。
|
|
</simpara>
|
|
</warning>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
<variablelist>
|
|
<title>
|
|
<function>glob</function> の
|
|
<parameter>flags</parameter> パラメータで使える定数
|
|
</title>
|
|
|
|
<varlistentry xml:id="constant.glob-available-flags">
|
|
<term>
|
|
<constant>GLOB_AVAILABLE_FLAGS</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
全ての <constant>GLOB_<replaceable>*</replaceable></constant> フラグの組み合わせ。以下と等しいです:
|
|
<literal>0</literal> | <constant>GLOB_BRACE</constant> |
|
|
<constant>GLOB_MARK</constant> | <constant>GLOB_NOSORT</constant> |
|
|
<constant>GLOB_NOCHECK</constant> | <constant>GLOB_NOESCAPE</constant> |
|
|
<constant>GLOB_ERR</constant> | <constant>GLOB_ONLYDIR</constant>
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.glob-brace">
|
|
<term>
|
|
<constant>GLOB_BRACE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
{a,b,c} を 'a', 'b', 'c' のいずれかにマッチするように展開します。
|
|
</simpara>
|
|
<note>
|
|
<simpara>
|
|
<constant>GLOB_BRACE</constant> は Solaris や Alpine Linux のような non GNU なシステムでは使えないことがあります。
|
|
</simpara>
|
|
</note>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.glob-err">
|
|
<term>
|
|
<constant>GLOB_ERR</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
(ディレクトリが読み取れない場合のような) 読み取りエラーの場合に停止します。
|
|
デフォルトでは、エラーは無視されます。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.glob-mark">
|
|
<term>
|
|
<constant>GLOB_MARK</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
スラッシュ(Windows の場合はバックスラッシュ)
|
|
を返されるディレクトリに個別に追加します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.glob-nocheck">
|
|
<term>
|
|
<constant>GLOB_NOCHECK</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
マッチするファイルが見つからない場合に、検索パターンを返します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.glob-noescape">
|
|
<term>
|
|
<constant>GLOB_NOESCAPE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
バックスラッシュは、メタキャラクタをクォートしません。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.glob-nosort">
|
|
<term>
|
|
<constant>GLOB_NOSORT</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
ディレクトリ内に存在するかのように、ファイルを返します(ソートは行いません)。
|
|
このフラグを使わない場合、パス名はアルファベット順でソートされます。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.glob-onlydir">
|
|
<term>
|
|
<constant>GLOB_ONLYDIR</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
パターンにマッチするディレクトリエントリのみを返します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
<variablelist>
|
|
<title>
|
|
<function>pathinfo</function> の
|
|
<parameter>flags</parameter> パラメータで使える定数
|
|
</title>
|
|
<varlistentry xml:id="constant.pathinfo-all">
|
|
<term>
|
|
<constant>PATHINFO_ALL</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
pathinfo の全ての情報です。
|
|
連想配列として返されます。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pathinfo-dirname">
|
|
<term>
|
|
<constant>PATHINFO_DIRNAME</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
ファイルのディレクトリパス
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pathinfo-basename">
|
|
<term>
|
|
<constant>PATHINFO_BASENAME</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
ディレクトリ名、またはファイル名とその拡張子
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pathinfo-extension">
|
|
<term>
|
|
<constant>PATHINFO_EXTENSION</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
ファイルの拡張子
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pathinfo-filename">
|
|
<term>
|
|
<constant>PATHINFO_FILENAME</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
ファイル名(拡張子なし)またはディレクトリ名
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
<variablelist>
|
|
<title>
|
|
<function>parse_ini_file</function> と
|
|
<function>parse_ini_string</function> の
|
|
<parameter>scanner_mode</parameter> パラメータで使える定数
|
|
</title>
|
|
|
|
<varlistentry xml:id="constant.ini-scanner-normal">
|
|
<term>
|
|
<constant>INI_SCANNER_NORMAL</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
通常の INI スキャナモード
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.ini-scanner-raw">
|
|
<term>
|
|
<constant>INI_SCANNER_RAW</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
生の INI スキャナモード
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.ini-scanner-typed">
|
|
<term>
|
|
<constant>INI_SCANNER_TYPED</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
型つきの INI スキャナモード
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
<variablelist>
|
|
<title>
|
|
<function>fnmatch</function> の
|
|
<parameter>flags</parameter> パラメータで使える定数
|
|
</title>
|
|
|
|
<varlistentry xml:id="constant.fnm-noescape">
|
|
<term>
|
|
<constant>FNM_NOESCAPE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
バックスラッシュのエスケープを無効にする。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.fnm-pathname">
|
|
<term>
|
|
<constant>FNM_PATHNAME</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
文字列中のスラッシュが、指定したパターン内のスラッシュにのみマッチする。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.fnm-period">
|
|
<term>
|
|
<constant>FNM_PERIOD</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
文字列の先頭のピリオドが、指定したパターン内のピリオドにのみマッチする。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.fnm-casefold">
|
|
<term>
|
|
<constant>FNM_CASEFOLD</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
大文字小文字を区別しないマッチを行う。GNU 拡張の一部。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
<variablelist xml:id="filesystem.constants.upload">
|
|
<title>PHP のファイルアップロード関連の定数</title>
|
|
<varlistentry xml:id="constant.upload-err-cant-write">
|
|
<term>
|
|
<constant>UPLOAD_ERR_CANT_WRITE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
ファイルをディスクに書き込めませんでした。
|
|
この定数の値は <literal>7</literal> です。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.upload-err-extension">
|
|
<term>
|
|
<constant>UPLOAD_ERR_EXTENSION</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
PHP 拡張機能がファイルアップロードを停止させました。
|
|
PHP はどの拡張機能がファイルアップロードを止めたのかを検出する手段を提供していません。<function>phpinfo</function> で表示される、ロード済みの拡張機能の一覧が手掛かりになるかもしれません。
|
|
この定数の値は <literal>8</literal> です。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.upload-err-form-size">
|
|
<term>
|
|
<constant>UPLOAD_ERR_FORM_SIZE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
アップロードされたファイルが、
|
|
HTML フォームで指定された <emphasis>MAX_FILE_SIZE</emphasis>
|
|
を超えています。
|
|
この定数の値は <literal>2</literal> です。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.upload-err-ini-size">
|
|
<term>
|
|
<constant>UPLOAD_ERR_INI_SIZE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
アップロードされたファイルが、
|
|
&php.ini; の <link linkend="ini.upload-max-filesize">upload_max_filesize</link>
|
|
を超えています。
|
|
この定数の値は <literal>1</literal> です。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.upload-err-no-file">
|
|
<term>
|
|
<constant>UPLOAD_ERR_NO_FILE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
アップロードされたファイルはありません。
|
|
この定数の値は <literal>4</literal> です。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.upload-err-no-tmp-dir">
|
|
<term>
|
|
<constant>UPLOAD_ERR_NO_TMP_DIR</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
テンポラリフォルダがありません。
|
|
この定数の値は <literal>6</literal> です。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.upload-err-ok">
|
|
<term>
|
|
<constant>UPLOAD_ERR_OK</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
エラーはありません。ファイルのアップロードは成功しました。
|
|
この定数の値は <literal>0</literal> です。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.upload-err-partial">
|
|
<term>
|
|
<constant>UPLOAD_ERR_PARTIAL</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
アップロードされたファイルは一部だけでした。
|
|
この定数の値は <literal>3</literal> です。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</appendix>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|