<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.hash.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.hash-update-file.php',
    1 => 'hash_update_file',
    2 => 'Ajoute des donn&eacute;es dans un contexte de hachage actif provenant d\'un fichier',
  ),
  'up' => 
  array (
    0 => 'ref.hash.php',
    1 => 'hash_pbkdf2',
  ),
  'prev' => 
  array (
    0 => 'function.hash-update.php',
    1 => 'hash_update',
  ),
  'next' => 
  array (
    0 => 'function.hash-update-stream.php',
    1 => 'hash_update_stream',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/hash/functions/hash-update-file.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.hash-update-file" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">hash_update_file</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.2, PHP 7, PHP 8, PECL hash &gt;= 1.1)</p><p class="refpurpose"><span class="refname">hash_update_file</span> &mdash; <span class="dc-title">Ajoute des données dans un contexte de hachage actif provenant d&#039;un fichier</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.hash-update-file-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>hash_update_file</strong></span>(<span class="methodparam"><span class="type"><a href="class.hashcontext.php" class="type HashContext">HashContext</a></span> <code class="parameter">$context</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span></span> <code class="parameter">$stream_context</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>


 </div>

 <div class="refsect1 parameters" id="refsect1-function.hash-update-file-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">context</code></dt>
     <dd>
      <p class="para">
       Contexte de hachage retourné par <span class="function"><a href="function.hash-init.php" class="function">hash_init()</a></span>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">filename</code></dt>
     <dd>
      <p class="para">
       URL indiquant l&#039;emplacement du fichier qui sera haché; Supporte les
       enveloppes <span class="function"><a href="function.fopen.php" class="function">fopen()</a></span>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">stream_context</code></dt>
     <dd>
      <p class="para">
       Contexte de flux retourné par
       <span class="function"><a href="function.stream-context-create.php" class="function">stream_context_create()</a></span>.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.hash-update-file-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Cette fonction retourne <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> en cas de succès ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
 </div>

 
 <div class="refsect1 changelog" id="refsect1-function.hash-update-file-changelog">
  <h3 class="title">Historique</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        <code class="parameter">stream_context</code> est désormais nullable.
       </td>
      </tr>

      <tr>
       <td>7.2.0</td>
       <td>
        Accepte une <span class="classname"><a href="class.hashcontext.php" class="classname">HashContext</a></span> au lieu d&#039;une ressource.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.hash-update-file-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.hash-init.php" class="function" rel="rdfs-seeAlso">hash_init()</a> - Initialise un contexte de hachage incr&eacute;mental</span></li>
    <li><span class="function"><a href="function.hash-update.php" class="function" rel="rdfs-seeAlso">hash_update()</a> - Ajoute des donn&eacute;es dans le contexte de hachage actif</span></li>
    <li><span class="function"><a href="function.hash-update-stream.php" class="function" rel="rdfs-seeAlso">hash_update_stream()</a> - Ajoute des donn&eacute;es dans un contexte de hachage actif d'un flux ouvert</span></li>
    <li><span class="function"><a href="function.hash-final.php" class="function" rel="rdfs-seeAlso">hash_final()</a> - Finalise un hachage incr&eacute;mental et retourne le r&eacute;sultat de l'empreinte num&eacute;rique</span></li>
    <li><span class="function"><a href="function.hash-file.php" class="function" rel="rdfs-seeAlso">hash_file()</a> - G&eacute;n&egrave;re une valeur de hachage en utilisant le contenu d'un fichier donn&eacute;</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>