<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.stream.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'stream.contexts.php',
    1 => 'ストリームコンテキスト',
    2 => 'ストリームコンテキスト',
  ),
  'up' => 
  array (
    0 => 'book.stream.php',
    1 => 'ストリーム',
  ),
  'prev' => 
  array (
    0 => 'stream.filters.php',
    1 => 'ストリームフィルタ',
  ),
  'next' => 
  array (
    0 => 'stream.errors.php',
    1 => 'ストリームのエラー',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/stream/contexts.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="stream.contexts" class="chapter">
 <h1 class="title">ストリームコンテキスト</h1>

 <p class="simpara">
  <code class="literal">コンテキスト</code> は、ストリームの挙動を変えたり、
  拡張したりすることのできる <code class="literal">パラメータ</code> と
  ラッパー固有の <code class="literal">オプション</code> の集合です。
  <code class="literal">コンテキスト</code> は、
  <span class="function"><a href="function.stream-context-create.php" class="function">stream_context_create()</a></span> を使って生成しますが、
  これは、ほとんどのファイルシステム関連のストリーム生成関数に
  渡すことができます (例えば <span class="function"><a href="function.fopen.php" class="function">fopen()</a></span>,
  <span class="function"><a href="function.file.php" class="function">file()</a></span>, <span class="function"><a href="function.file-get-contents.php" class="function">file_get_contents()</a></span> など)。
 </p>
 <p class="simpara">
  <code class="literal">オプション</code> は、
  <span class="function"><a href="function.stream-context-create.php" class="function">stream_context_create()</a></span> の呼び出し時に指定しますが、
  後で <span class="function"><a href="function.stream-context-set-option.php" class="function">stream_context_set_option()</a></span> を使って
  指定することもできます。
  ラッパー固有の <code class="literal">オプション</code> については、
  <a href="context.php" class="xref">コンテキストオプションとパラメータ</a> を参照ください。
 </p>
 <p class="simpara">
  さらに、<span class="function"><a href="function.stream-context-set-params.php" class="function">stream_context_set_params()</a></span> を使うことで、
  <code class="literal">パラメータ</code> を、<code class="literal">コンテキスト</code>
  に対し指定することができます。
 </p>
</div>
<?php manual_footer($setup); ?>