Dataset Viewer
Auto-converted to Parquet
text
stringlengths
1
254
output
stringlengths
2
255
Using XML as a source format gives us the ability to generate many output formats from the source files, while only maintaining one source document for all formats.
このマニュアルはXMLで書かれていて、 DocBook XML DTD 、 DSSSL (Document Style and Semantics Specification Language)をフォーマットに使用しています。また、実験的に XSLT (Extensible Stylesheet Language Transformations)をメンテナンスとフォーマットに 使用しています。
The manuals are updated automatically as the text is updated.
様々な言語の、(テキスト形式、シンプルな HTML 形式、 PDF 、PalmPilot DOC、PalmPilot iSilo、 Windows HTML Help等を含む)様々な形式の最新のマニュアルを http://www.php.net/docs.php からダウロード することができます。マニュアルはその内容が変更されると 自動的に更新されます。
The documentation is stored in the phpdoc module.
このドキュメントの XML ソースコードのダウンロード に関する情報は http://cvs.php.net/ に あります。ドキュメントは phpdoc モジュールに格納 されています。
If you find errors in this manual, in any language, please report them using the bug system at http: / /bugs.php.net /.
ドキュメントを改善していくには2つの方法があります。
By contributing notes, you can provide additional examples, caveats, and clarifications for other readers.
もし(どの言語でかかれたものでも)マニュアルに間違いを見つけたら http://bugs.php.net/ にある bug systemを使ってその問題を報告して下さい。バグの種別は "Documentation Problem"にして下さい。特定のフォーマット でのみ起こる問題もここから送信することが出来ます。
You can read more about annotations in the 'About user notes' section of this appendix.
注意 bug systemに助けを要求することでシステムを無駄に使用しないで下さい。 そういった場合は前述したメーリングリストやコミュニティサイトを 利用してください。
If you would like to start a new translation, or help in a translation project, please read http: / /cvs.php.net / co.php / phpdoc / howto / howto.html.tar.gz.
各ページに注釈をつけることで、原文に実例、警告等の更なる説明を 追加することが出来ます。とはいえ、この注釈システムを使って バグレポートを送信しないで下さい。ユーザノートの詳細については、 About user notes の 項を読んで下さい。
These formats can be divided into two groups: online readable formats, and downloadable packages.
PHPのマニュアルはいくつかのフォーマットで提供されています。 大まかに言うとフォーマットには2つの種類があります。オンラインで 読むことのできるフォーマットとダウンロード可能なパッケージです。
We cannot recommend any of those, as they tend to become out-of-date very quickly.
注意 いくつかの出版社は印刷されたマニュアルを提供しています。私たち としてはそれらをお勧めすることは出来ません。何故ならそういった ものはすぐに古いものなってしまいがちだからです。
You can view the manual in either its plain (print-friendly) HTML format or an HTML format that integrates the manual into the look and feel of the PHP website itself.
オンラインマニュアルは http://www.php.net/ や、いくつかのミラーサイトで読むことができます。このタイプの フォーマットのマニュアルを快適に読むためには、一番近い場所にある ミラーサイトを選択すると良いでしょう。マニュアルはシンプルな (プリンタフレンドリーな)HTMLフォーマットか、PHPのウェブサイト のデザインに統合されたHTMLフォーマットかのいずれかを選んで 閲覧することが出来ます。
An obvious disadvantage is that you have to be online to view the manual in the online formats.
オンラインマニュアルのオフラインのマニュアルに対する主な利点は ユーザノート が統合されている ことでしょう。不利な点は、当然ですがマニュアルを見るためには 常にオンラインでいる必要があることです。
For information on how the manual is generated in so many formats, read the 'How we generate the formats' section of this appendix.
オフラインフォーマットにはいくつかのタイプがあるので、使用している OSや読み方にあわせて最適なものを選択してください。これらの異なった フォーマットのドキュメントをどのように生成しているかという 情報については、この付録の 各種フォーマットを生成する方法 の項を読んでください。
The HTML and plaintext formats are provided as tar files compressed using the bzip2 archiver.
テキストビューワやブラウザはどんなOSにも有るものなので、 HTMLとテキストファイルはほとんどプラットフォームを問わずに 利用できるフォーマットです。HTMLフォーマットは一つのHTMLファイルに まとめられたものと、章ごとに分割されたファイルのパッケージ (その結果、総数は数千にもなっています)の両方があります。 HTMLとテキストファイルは圧縮されたbzip2で圧縮されたtarアーカイブ として提供されています。
But before you rush to download this format and hit the Print button, be warned that the manual is nearly 2000 pages long, and constantly being revised.
PDF(またの名をAdobe Acrobat)もまたクロスプラットフォームな フォーマットで、印刷するのに最適です。しかし、勢い込んで このフォーマットをダウンロードして印刷ボタンを押す前に、 このマニュアルは2000ページもの長さを持ち、常に更新されて いる、ということについてよく考えてみてください。
If you do not already have a program capable of viewing PDF format files, you may need to download Adobe Acrobat Reader.
注意 もしPDFファイルを閲覧するプログラムが無い場合は、 Adobe Acrobat Reader を ダウンロードする必要があります。
You can bring your handheld with you on your daily commute and use a DOC or iSilo reader to brush up on your PHP knowledge, or just use it as a quick reference.
Palm互換のデバイスを持っている人にとっては、Palmドキュメントや iSiloが理想的なフォーマットです。Palmを日々の通勤で持ち歩き、 DOC や iSilo を使用してPHPの知識に 磨きをかけたり、クイックリファレンスとして使用することが できます。
This version provides full-text search, a full index, and bookmarking.
Windows上では、WindowsヘルプでWindows HTMLヘルプ版のマニュアルを 使用すると非常に便利です。このバージョンは全文検索、完全な目次、 そしてブックマーク機能を提供します。多くの有名なWindows上での PHP開発環境ではこのバージョンのマニュアルを統合する機能を備えて いて、間単にアクセスすることが出来ます。
List of Parser Tokens
注意 CHMクリエータとビューワの開発も行っているVisual Basic for Linuxプロジェクトはまだ計画中の段階です。もしこの プロジェクトの進行状況に興味があるなら、 sourceforge のページを 見て下さい。
If you are a first-time, or even just a beginning, programmer, you may find it difficult to learn how to program in PHP using just this manual.
このマニュアルは一般的なプログラミングの解説を提供しよう としているわけではありません。従って、もしあなたが全く初めて プログラミングを行う、もしくはほとんど初心者である、と言う場合は このマニュアルだけを使って、PHPのプログラミングを習得するのは 難しいでしょう。そうした場合には初心者向けの本を探したほうが よいかもしれません。PHP関連の書籍は http://www.php.net/books.php で見つけることが できます。
And until the notes have been incorporated, they can be viewed in their submitted form online and in some of the offline formats.
ユーザノートはPHPマニュアルを作成していく上で重要な役割を 持っています。マニュアルの読者が実例、警告そしてさらに詳しい 説明をブラウザから提供できるようにすることで、そうした フィードバックをマニュアルの本文に取り込むことが出来るのです。 そして記事が本文に取り入れられるまでの間は、その内容をオンライン、 もしくはいくつかのオフラインフォーマットで参照することが出来ます。
For more details see the Manual 's Copyright page.
ユーザノートがPHPのサイトに表示される際に、何らかの 抑制があるわけではない、ということに注意して下さい。 従って、そこに書かれた内容、実例の質については保証 されません(とはいえ、マニュアルの本文そのものの 質が保証されない、ということではありません)。
This list is provided to help those who want to upgrade their old scripts to newer syntax.
以下にエイリアスのリストを示します。全てのエイリアスが記述されてい ます。エイリアスの使用は古かったり、名前が変更されていたりで移植性の 低いスクリプトとなるため推奨されません。このリストは、古いスクリプト から新しい構文に更新しようとする人の助けとなるために提供されるもので す。
This list is consistent with PHP 4.0.6.
このリストは、PHP 4.0.6に基づきます。
Table F-1.
表 F-1エイリアス
call_user_function() returns SUCCESS on success, and FAILURE in case the function cannot be found.
ユーザー関数を内部関数からコールするには、 call_user_function() 関数を 使用する必要があります。
If it returns FAILURE, the value of retval is undefined, and you mustn 't touch it.
call_user_function() は成功時に SUCCESS、 関数を見つけられなかった場合に FAILURE を返します。 返り値を確認する必要があります! SUCCESS が返された場合、 retval pval 自体(または関数からの返り値として それを返す)を破棄する責任があります。 FAILURE が返された場合、retval の値は未定義であり、参照することは できません。
Among other things, this means they must not use globals or static variables.
ユーザー関数をコールする全ての内部関数は、再入可能(reentrant) である 必要があります 。 特に、このことは、グローバルまたは静的変数を使用するべきでは ないということを意味します。
This is a pointer to an object on which the function is invoked.
call_user_function() は次の 6個の引数をとります。
If it' s not NULL (i.e. it points to an object), the function_table argument is ignored, and instead taken from the object's hash.
これは、関数を参照できるハッシュテーブルです。
The function_name is modified by call_user_function() - it's converted to lowercase.
コールする関数の名前。 function_name.str.val および function_name.str.len に適当な 値を設定した IS_STRING 型の pval である必要があります。 function_name は、call_user_function() により修正されます。 この時、function_name は、小文字に変換されます。 大文字・小文字を保存する必要がある場合、関数名のコピーを代わりに 送って送ってください。
A pointer to a pval structure, into which the return value of the invoked function is saved.
コールされた関数の返り値が保存された pval 構造体へのポインタ。 構造体は、事前に確保されたものである必要があります。 call_user_function() はそれ自体では リソースの確保を行いません。
The number of parameters being passed to the function.
関数に渡されたパラメータの数
The array is an array of pointers to pval' s; The pointers are sent as-is to the function, which means if the function modifies its arguments, the original values are changed (passing by reference).
関数の引数として渡される値へのポインタの配列、最初の引数は オフセット 0 にあり、2番目はオフセット 1 にあります。 配列は、pval へのポインタの配列です。 ポインタは、関数にそのまま送られます。 このことは、関数が引数を修正した場合、元の値が変更される(参照渡し) ことを意味します。 この動作が好ましくない場合、コピーを代わりに渡してください。
$obj = new COM( "server.object")
(no version information, might be only in CVS)
COM class constructor.
COM クラスは、PHPスクリプトに統合された (D)COMコンポーネントのフ レームワークを提供します。
name of the DCOM server from which the component should be fetched.
COM クラスのコンストラクタ。 パラメータ:
To allow DCOM com.allow_dcom has to be set to TRUE in php.ini.
リクエストされたコンポーネントの名前またはクラスID。
Possible values are CP_ACP, CP_MACCP, CP_OEMCP, CP_SYMBOL, CP_THREAD_ACP, CP_UTF7 and CP_UTF8.
コンポーネントを取得するDCOMサーバの名前。 NULL の場合には、 localhost が指定されたと仮定されます。 DCOMを使用するためには、 php.ini で com.allow_dcom を TRUE に設定してある必要があります。
COM example (2)
例 1COM の例 (1)
COM support functions for Windows
例 2COM の例 (2)
The handle property can be used with other directory functions such as readdir(), rewinddir() and closedir().
(PHP 3, PHP 4)
We are explicitly testing whether the return value is identical to (equal to and of the same type as--see Comparison Operators for more information) FALSE since otherwise, any directory entry whose name evaluates to FALSE will stop the loop.
ディレクトリを読むための疑似オブジェクト指向の機構です。 指定した directory がオープンされます。 いったんディレクトリがオープンされると、2 つのプロパティを使用 できるようになります。handle プロパティは、 readdir (), rewinddir(), closedir() のような他のディレクトリ関数と組み合わせて 使用可能です。path プロパティには、オープンするディレクトリのパス をセットします。read, rewind, close の3種類のメソッドが 使用できます。
$d = dir( "/ etc"); echo "Handle: ".$d - handle." br \n"; echo "Path: ".$d - path. "br \n"; while (false !== ($entry = $d - read())) {echo $entry." br \n";} $d - close();
例 1 dir() の例
For a full list of predefined classes in PHP, please see Predefined Classes.
注意 読み込みにより返されるディレクトリエントリの順番は、システムに依 存します。
(no version information, might be only in CVS)
(no version information, might be only in CVS)
A simple container to wrap variables into VARIANT structures.
VARIANT構造体に変数をラップするための簡単なコンテナクラス。
Parameters:
VARIANT クラスのコンストラクタ。 パラメータ:
specifies the content type of the VARIANT object.
初期値。省略した場合には、VT_EMPTYオブジェクトが作成されます。
Possible values are CP_ACP, CP_MACCP, CP_OEMCP, CP_SYMBOL, CP_THREAD_ACP, CP_UTF7 and CP_UTF8.
PHPの文字列のUNICODE文字列への変換およびその逆変換で使用され るコードページを指定します。使用可能な値は、 CP_ACP, CP_MACCP, CP_OEMCP, CP_SYMBOL, CP_THREAD_ACP, CP_UTF7, CP_UTF8 で す。
When using PHP as an Apache module, you can also change the configuration settings using directives in Apache configuration files (e.g. httpd.conf) and .htaccess files (You will need "AllowOverride Options "or "AllowOverride All" privileges)
PHP を Apache モジュールとして使用する場合、Apache用設定ファイルや .htaccess ファイルに命令を記述することによりPHPの設定を行うことが 可能です("AllowOverride Options" もしくは "AllowOverride All"権限 が必要)。
For a listing of which directives are PHP_INI_ALL, PHP_INI_PERDIR, or PHP_INI_SYSTEM, have a look at the table found within the ini_set() documentation.
PHP 3.0 においては、 php3.ini の各ディレクティ ブに対応した Apache 用ディレクティブが存在し、PHP 用のディレクティ ブの前に "php3_" を付けて使用することにより、設定の変更が可能です。
Sets the value of the specified directive.
PHP 4.0 においては、PHP設定用の複数のApacheディレクティブがあり、 Apacheの設定ファイルでPHPの設定を変更可能です。
To clear a previously set value use none as the value.
指令した変数の値を設定します。
Can be used only with PHP_INI_ALL and PHP_INI_PERDIR type directives.
論理値のオプション設定を変更するために使用します。
Used to set a Boolean configuration directive.
指定した変数の値を設定します。"Admin" は、メインの Apache 用設 定ファイルにおいてのみ設定可能で、.htaccess ファイルからは設定 できません。
Any directive type set with php_admin_flag can not be overridden by .htaccess or virtualhost directives.
論理値のオプションを設定するために使用されます。 (Adminの意味は上記のオプションと同じです。)
PHP constants do not exist outside of PHP.
例 4-2Apache 設定の例
Use the associated bitmask values instead.
注意 PHP定数はPHP以外では使用できません。例えば、 httpd.conf の中で error_reporting ディ レクティブを設定するために E_ALL または E_NOTICE のようなPHP定数を使用する ことはできません。これらは意味を有さないため、 0 と評価されてしまいます。 代わりに対応するビットマスクを使用して下さい。これらの定数は、 php.ini で使用することができます。
The following table provides an overview at which level a directive can be set / changed.
PHP へのインターフェイスによらず、 ini_set() によりスクリプトの実行時ある種の値を 変更することができます。以下の表にどのレベルのディレクティブを設 定/変更できるかの概要を示します。
PHP_INI_SYSTEM
表 4-1PHP_INI_* 定数の定義
You can also access the values of individual configuration directives using ini_get() or get_cfg_var().
phpinfo() の出力で設定値を参照することができま す。また、 ini_get() または get_cfg_var() により個々の設定値にアクセスする ことも可能です。
Language and Misc Configuration Options
表 4-2httpdオプション
allow_call_time_pass_reference
表 4-3言語およびその他の設定オプション
expose_php
以下に設定ディレクティブの簡単な説明を示します。
Here is a short explanation of the configuration directives.
PHP タグの短縮型 (??) を使用 可能にするかどうかを設定します。PHPをXMLと組み合わせて用いる 場合は、 ?xml? をファイル中で用 いるためにこのオプションをオフにする必要があります。オンにし た場合にPHPでXMLを出力するには、例えば、次のようにします。 ?php echo '?xml version="1.0"';? これをオフにした場合、長い方の形式のタグ (?php? )を使用する必要がありま す。
If you want to use PHP in combination with XML, you can disable this option in order to use ?xml? inline.
注意 このディレクティブは、? echo と同じ形式の ショートカット ?= も影響を受けます。 このショートカットを使用するには、 short_open_tag をonとする 必要があります。
Also if disabled, you must use the long form of the PHP open tag (?php?).
ASP 形式のタグ%% を通常のタグ ?php? に加えて使用可能にします。 このスイッチにより、出力の短縮形 %= $value% も使用できるようになります。 詳細な情報は、 HTML からのエスケープ を参照下さい。
This directive also affects the shorthand ?=, which is identical to? echo.
注意 ASP形式のタグは3.0.4で追加されました。
Enables the use of ASP-like%% tags in addition to the usual ?php? tags.
浮動小数点数に関して表示される最大桁数を指定します。
For more information, see Escaping from HTML.
2000年問題対応を強制します。(2000年問題非対応のブラウザに問題 を発生する可能性があります。)
Enforce year 2000 compliance (will cause problems with non-compliant browsers)
関数のコール時に引数を強制的に参照で渡す機能の有効/無効を設定 します。この機能は過去のものであり、将来のバージョンの PHP/Zendではサポートされない可能性があります。 推奨される方法は、関数宣言時に参照渡しとするべき引数を指定す る方法です。将来のバージョンでの動作を保障するために、このオ プションをoffとし、スクリプトがこの状態で正しく動作することを 確認することが推奨されます。 (この機能を使用する度に警告が発生し、引数は参照ではなく値で渡 されます。)
This method is deprecated and is likely to be unsupported in future versions of PHP / Zend.
参照に関する説明 も 参照下さい。
See also References Explained.
表 4-4リソース制限
Decides whether PHP may expose the fact that it is installed on the server (e.g. by adding its signature to the Web server header).
以下に設定ディレクティブに関する簡単な説明を示します。
Table 4-4.
スクリプトが確保できる最大メモリをバイト数で指定します。この 命令は、正しく書かれていないスクリプトがサーバーのメモリを食 いつぶすことを防止するのに役立ちます。
Name
max_execution_time も参照下さい。
memory_limit
表 4-5データ処理設定オプション
Here is a short explanation of the configuration directives.
以下に設定ディレクティブに関する簡単な説明を示します。
This helps prevent poorly written scripts for eating up all available memory on a server.
このオプションを有効にした場合、環境、GET、POST、クッキー、サー バ変数は、グローバル連想配列 $_ENV, $_GET, $_POST, $_COOKIE, $_SERVER で参照することができます。
So, your configure line would have included: --enable-memory-limit.
PHP 4.0.3以降、, track_vars は常にonとなっている ことに注意して下さい。
See also: max_execution_time.
PHPがURLを生成する際にURL引数を区分するために使用されるセパレー タ。
allow_webdav_methods
入力されたURLを変数にパースする際にPHPが使用するセパレータのリスト。
Here is a short explanation of the configuration directives.
注意 このディレクティブで指定した全ての文字はセパレータとして認識 されます!
Note that as of PHP 4.0.3, track_vars is always turned on.
EGPCS (Environment, GET, POST, Cookie, Server) 変数のパースの 順番を設定します。このディレクティブのデフォルトの設定値は、 "EGPCS"です。例えば、これを"GP"に設定するとPHPは完全に環境変 数、クッキー、サーバ変数を無視し、GETメソッド変数を同じ名前の POSTメソッド変数で全て上書きするようになります。
List of separator( s) used by PHP to parse input URLs into variables.
register_globals も参照下さい。
Setting this to "GP", for example, will cause PHP to completely ignore environment variables, cookies and server variables, and to overwrite any GET method variables with POST-method variables of the same name.
register_globals は、 (ini_set() で)実行時に設定することができないことに 注意して下さい。しかし、前記のようにホストが許可している場合には、 .htaccess を使用することができます。 .htaccess エントリの例を以下に示します。 php_flag register_globals on
Tells whether or not to register the EGPCS (Environment, GET, POST, Cookie, Server) variables as global variables.
注意 register_globals は、 variables_order ディレクティブの影響を受けます。
Or, $DOCUMENT_ROOT from $_SERVER[ 'DOCUMENT_ROOT'].
PHPが変数argvとargcを宣言するかどうかを指定します (argvにはGETの情報が格納されます)。
As of PHP 4.2.0, this directive defaults to off.
コマンドライン も参照して下さい。このディレクティブはPHP 4.0.0で 追加されました。以前のバージョンでは常に"on"です。
Please read the security chapter on Using register_globals for related information.
POSTデータに許可される最大サイズを設定します。この設定は、ファ イルアップロードにも影響します。大きなファイルをアップロード するには、この値を upload_max_filesize より大きく設定する必要があります。
Although, you can use .htaccess if your host allows it as described above.
configureスクリプトでメモリ制限を有効とした場合、 memory_limit もファイルアッ プロードに影響します。一般的に memory_limit は、 post_max_size よりも大きく する必要があります。
Tells PHP whether to declare the argv argc variables (that would contain the GET information).
GET/POST/COOKIE 変数処理の順番を設定します。この命令のデフォ ルトの設定は、"GPC"です。例えば、これを"GP"にPHPはクッキーを 完全に無視し、GETメソッド変数を同名のPOSTメソッド変数で上書き します。
Sets max size of post data allowed.
注意 このオプションは、PHP 4では利用できまないことに注意して下さい。 代わりに、 variables_order を使用し て下さい。
If memory limit is enabled by your configure script, memory_limit also affects file uploading.
メインファイルの前に自動的に付加されるファイルの名前を 指定します。 このファイルは、 include() 関数のコール時 と同様に読み込まれます。 このため、 include_path が使用されます。
Set the order of GET / POST / COOKIE variable parsing.
特別な値 none を指 定すると、ファイルを前に追加する機能は無効となります。
Setting this to "GP", for example, will cause PHP to completely ignore cookies and to overwrite any GET method variables with POST-method variables of the same name.
メインファイルの後に自動的に追加されるファイルの 名前を指定します。 このファイルは、 include() 関数のコール時 と同様に読み込まれます。 このため、 include_path が使用されます。
The file is included as if it was called with the include() function, so include_path is used.
none を値として 指定するとこの自動付加機能はオフとなります。
The file is included as if it was called with the include() function, so include_path is used.
注意 スクリプトが exit() で終了する場合、 この自動付加機能は使用されません 。
As of 4.0b4, PHP always outputs a character encoding by default in the Content-type: header.
4.0b4以降、PHP は、デフォルトで常にContent-type:ヘッダで character encodingを出力するようになっています。charsetの送信 を無効にするには、これを空にして下さい。
Always populate the $HTTP_RAW_POST_DATA variable.
常に$HTTP_RAW_POST_DATA変数にアクセス可能とします。
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4