<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.hash-update-file.php',
    1 => 'hash_update_file',
    2 => 'アクティブなハッシュコンテキストに、ファイルからデータを投入する',
  ),
  'up' => 
  array (
    0 => 'ref.hash.php',
    1 => 'Hash 関数',
  ),
  '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' => 'ja',
    '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">
   アクティブなハッシュコンテキストに、ファイルからデータを投入する
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.hash-update-file-description">
  <h3 class="title">説明</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">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">context</code></dt>
     <dd>
      <p class="para">
       <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。
       <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">
       <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">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.hash-update-file-changelog">
  <h3 class="title">変更履歴</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>バージョン</th>
       <th>説明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        <code class="parameter">stream_context</code> は、nullable になりました。
       </td>
      </tr>

      <tr>
       <td>7.2.0</td>
       <td>
        リソースの代わりに <span class="classname"><a href="class.hashcontext.php" class="classname">HashContext</a></span> を受け入れるようになりました。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.hash-update-file-seealso">
  <h3 class="title">参考</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> - 段階的なハッシュコンテキストを初期化する</span></li>
    <li><span class="function"><a href="function.hash-update.php" class="function" rel="rdfs-seeAlso">hash_update()</a> - アクティブなハッシュコンテキストにデータを投入する</span></li>
    <li><span class="function"><a href="function.hash-update-stream.php" class="function" rel="rdfs-seeAlso">hash_update_stream()</a> - アクティブなハッシュコンテキストに、オープンしているストリームから
   データを投入する</span></li>
    <li><span class="function"><a href="function.hash-final.php" class="function" rel="rdfs-seeAlso">hash_final()</a> - 段階的なハッシュ処理を終了し、出来上がったダイジェストを返す</span></li>
    <li><span class="function"><a href="function.hash-file.php" class="function" rel="rdfs-seeAlso">hash_file()</a> - ファイルの内容から、ハッシュ値を生成する</span></li>
   </ul>
  </p>
 </div>


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