<?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 => 'ru',
  ),
  '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' => 'ru',
    '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">
  <code class="literal">Параметры</code> для <code class="literal">контекстов</code>
  указывают функцией <span class="function"><a href="function.stream-context-set-params.php" class="function">stream_context_set_params()</a></span>.
 </p>
</div>
<?php manual_footer($setup); ?>