hash_update_file
(PHP 5 >= 5.1.2, PECL hash >= 1.1)
hash_update_file — アクティブなハッシュコンテキストに、ファイルから データを投入する
説明
bool hash_update_file
( resource $context
, string $filename
[, resource $context = NULL
] )
パラメータ
- context
-
hash_init() が返すハッシュコンテキスト。
- filename
-
ハッシュ対象となるファイルの位置を示す URL。 fopen ラッパーをサポートしています。
- context
-
stream_context_create() が返す ストリームコンテキスト。
返り値
成功した場合に TRUE を、失敗した場合に FALSE を返します。
参考
- hash_init() - 段階的なハッシュコンテキストを初期化する
- hash_update() - アクティブなハッシュコンテキストにデータを投入する
- hash_update_stream() - アクティブなハッシュコンテキストに、オープンしているストリームから データを投入する
- hash_final() - 段階的なハッシュ処理を終了し、出来上がったダイジェストを返す
- hash() - ハッシュ値 (メッセージダイジェスト) を生成する
- hash_file() - ファイルの内容から、ハッシュ値を生成する
hash_update_file
There are no user contributed notes for this page.
