hash_update_file
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL hash >= 1.1)
hash_update_file — 從檔案向活躍的雜湊運算上下文中填充數據
說明
   hash_update_file(HashContext 
 $hcontext, string $filename, resource $scontext = null): bool參數
- 
hcontext
- 
      由 hash_init() 函式返回的雜湊運算上下文。 
- 
filename
- 
      要進行雜湊運算的檔案路徑,支援 fopen 封裝器。 
- 
scontext
- 
      由 stream_context_create() 函式返回的流上下文。 
返回值
   成功時返回 true, 或者在失敗時返回 false。
  
更新日誌
| 版本 | 說明 | 
|---|---|
| 7.2.0 | 接收參數從資源型別修改爲 HashContext 對像型別。 | 
參見
- hash_init() - 初始化增量雜湊運算上下文
- hash_update() - 向活躍的雜湊運算上下文中填充數據
- hash_update_stream() - 從打開的流向活躍的雜湊運算上下文中填充數據
- hash_final() - 結束增量雜湊,並且返回摘要結果
- hash() - 產生雜湊值 (訊息摘要)
- hash_file() - 給指定檔案的內容產生雜湊值