From b914f39b82a47d01fba0fca4ce71404f157c52d3 Mon Sep 17 00:00:00 2001 From: Yoshinari Takaoka Date: Sun, 8 Dec 2024 18:33:37 +0900 Subject: [PATCH] Add class="extension" attribute to tags which refer to file extensions https://github.com/php/doc-en/commit/04d9aded7bbd447523cf038ddf88e6d7f7e43c53 --- chapters/tutorial.xml | 6 +++--- features/file-upload.xml | 4 ++-- install/macos/bundled.xml | 9 ++++++--- reference/opcache/preload.xml | 1 + 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/chapters/tutorial.xml b/chapters/tutorial.xml index bf1f2f6dee6..a2bac226e79 100644 --- a/chapters/tutorial.xml +++ b/chapters/tutorial.xml @@ -1,6 +1,6 @@ - + 簡易チュートリアル @@ -21,12 +21,12 @@ 必要なものは? 本チュートリアルでは、使用するサーバーで PHP が使用可能であり、 - .php で終わる全てのファイルが PHP + .php で終わる全てのファイルが PHP で処理されることを仮定します。多くのサーバーでは、PHP ファイルに関してこれがデフォルトの拡張子ですが、 確実なのはサーバーの管理者にきいてみることです。サーバーが PHP をサポートする場合、何もする必要はありません。 - .php ファイルを + .php ファイルを 作成して Web ディレクトリに置くだけで、 サーバーがこれを自動的にパースしてくれます。 何もコンパイルする必要はなく、他のツールをインストールする必要もありません。 diff --git a/features/file-upload.xml b/features/file-upload.xml index 4947c8e39c6..9563983e153 100644 --- a/features/file-upload.xml +++ b/features/file-upload.xml @@ -1,6 +1,6 @@ - + ファイルアップロードの処理 @@ -560,7 +560,7 @@ Script PUT /put.php これにより、この行を指定したコンテキストにマッチする URI を有する すべての PUT リクエストが put.php スクリプトに送られるよう Apache に - 指定します。 もちろん、拡張子 .php により PHP が実行されるよう設定され、 + 指定します。 もちろん、拡張子 .php により PHP が実行されるよう設定され、 PHP がアクティブであることが必要です。 このスクリプトに対するすべての PUT リクエストの対象リソースは、 スクリプト自身とします。アップロードされるファイルのファイル名ではありません。 diff --git a/install/macos/bundled.xml b/install/macos/bundled.xml index adb62203a11..a9b0a966bdd 100644 --- a/install/macos/bundled.xml +++ b/install/macos/bundled.xml @@ -1,6 +1,6 @@ - + macOS Monterey より前のバージョンにバンドルされている、PHP の使用法 @@ -82,13 +82,16 @@ - 指定した拡張子 (例: .php .html および .inc) + 指定した拡張子 (例: .php + .html + および + .inc が PHP でパースされるようにします。 以下のような行が httpd.conf にあれば (Mac Panther 以降にはあります)、 - PHP を有効にするだけで .php + PHP を有効にするだけで .php ファイルが自動的に PHP で処理されます。 +