From professional translators, enterprises, web pages and freely available translation repositories.
so, to write a generic script to handle post method variables you would need something similar to the following:
まず、 php.ini で track_vars が有効になっていること を確認してください。php 4.0.3以降ではこの設定値は常にonです。 track_vars がonになっているとphpはいくつかの連 想配列を生成します。このうち最も重要なのが $http_post_vars です。と言うわけで、postメソッ ドにより送信されたデータを扱う汎用的なスクリプトを書くには、以下 のようにします。
the only trick here is that when php sees a put-method request it stores the uploaded file in a temporary file just like those handled but the post-method.
これにより、この行を指定したコンテキストにマッチするuriを有する全 てのputリクエストが put.php スクリプトに送られるよう apache に指 定します。 もちろん、拡張子 .php により php が実行されるよう設定 され、php がアクティブであることが必要です。
any cookies sent to you from the client will automatically be turned into a php variable just like get and post method data, depending on the register_globals and variables_order configuration variables.
クライアントから送られた全てのクッキーは、 register_globals や variables_order の設定値に従って、 get や post メソッドのデータと全く同様に自動的に php 変数に変換 されます。多数の値を一つのクッキーに割り付けたい場合は、 [] をクッキー名に加えてください。
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 が使用されます。
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