php md5_file功能与gif文件? [英] php md5_file function with gif file?

查看:136
本文介绍了php md5_file功能与gif文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现当我使用php md5_file 函数来获取图像的 md5校验和时,校验和是

I discovered that when I use php md5_file function to get the md5 checksum of the image, the checksum is different everytime.

是gif图像还是动态的 md5_file()函数?

Is it the gif image or is the md5_file() function that is dynamic?

推荐答案

除非文件内容更改不可能

Unless the file contents change this is impossible

md5_file("path/file"); 

如果文件保持不变,输出将每次都是相同的哈希

If file stays the same the output will be the same hash every time

这篇关于php md5_file功能与gif文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆