php md5_file function with gif file?

空扰寡人 提交于 2019-12-13 06:18:17

问题


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

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


回答1:


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



来源:https://stackoverflow.com/questions/14055780/php-md5-file-function-with-gif-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!