hash_update_file
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL hash >= 1.1)
hash_update_file — 从文件向活跃的散列运算上下文中填充数据
说明
参数
context
由 hash_init() 函数返回的散列运算上下文。
filename
要进行散列运算的文件位置的 URL;支持 fopen() 封装器。
stream_context
由 stream_context_create() 函数返回的流上下文。
参见
- hash_init() - 初始化增量散列运算上下文
- hash_update() - 向活跃的哈希运算上下文中填充数据
- hash_update_stream() - 从打开的流向活跃的散列运算上下文中填充数据
- hash_final() - 结束增量散列且返回摘要结果
- hash_file() - 给指定文件的内容生成散列值
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
