Home  >  Article  >  Backend Development  >  md5-有关php上传文件名唯一确定,防止同名覆盖

md5-有关php上传文件名唯一确定,防止同名覆盖

WBOY
WBOYOriginal
2016-06-02 11:32:421123browse

phpmd5

$uniName=md5(uniqid(microtime(ture),true)).'.'.$ext;
$ext是文件类型。请问这句语句是什么意思,谢谢大神!希望可以详细点

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn