array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'context.php', 1 => 'コンテキストオプションとパラメータ', ), 'up' => array ( 0 => 'langref.php', 1 => '言語リファレンス', ), 'prev' => array ( 0 => 'sensitiveparameter.construct.php', 1 => 'SensitiveParameter::__construct', ), 'next' => array ( 0 => 'context.socket.php', 1 => 'ソケットコンテキストオプション', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'language/context.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/context.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
PHP にはさまざまなコンテキストオプションやパラメータがあり、 すべてのファイルシステムラッパーおよびストリームラッパーで使用することができます。 コンテキストの作成は stream_context_create() で行います。オプションの設定は stream_context_set_option() で、そしてパラメータの設定は stream_context_set_params() で行います。