<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'stream.contexts.php',
    1 => 'Contextes de flux',
    2 => 'Contextes de flux',
  ),
  'up' => 
  array (
    0 => 'book.stream.php',
    1 => 'Flux',
  ),
  'prev' => 
  array (
    0 => 'stream.filters.php',
    1 => 'Filtres de flux',
  ),
  'next' => 
  array (
    0 => 'stream.errors.php',
    1 => 'Erreurs de flux',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    '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">Contextes de flux</h1>

 <p class="simpara">
  Un <code class="literal">contexte</code> est un jeu de paramètres et d&#039;options
  spécifiques à un gestionnaire qui modifie ou améliore le comportement
  d&#039;un flux. Les <code class="literal">contextes</code> sont créés en utilisant la fonction
  <span class="function"><a href="function.stream-context-create.php" class="function">stream_context_create()</a></span> et peuvent être donnés aux
  fonctions de création de flux sur le système de fichiers
  (c.-à-d. <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>, etc.).
 </p>
 <p class="simpara">
  Les options peuvent être spécifiées en appelant
  <span class="function"><a href="function.stream-context-create.php" class="function">stream_context_create()</a></span> ou, plus tard, avec
  <span class="function"><a href="function.stream-context-set-option.php" class="function">stream_context_set_option()</a></span>.
  Une liste des options spécifiques aux gestionnaires peut être trouvée
  dans le chapitre <a href="context.php" class="xref">Options et param&egrave;tres de contexte</a>.
 </p>
 <p class="simpara">
  Les <code class="literal">paramètres</code> peuvent être spécifiés pour les
  <code class="literal">contextes</code> en utilisant la fonction
  <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); ?>