Home  >  Article  >  Backend Development  >  图片,该如何处理

图片,该如何处理

WBOY
WBOYOriginal
2016-06-13 11:59:59757browse

图片
网站里图片怎么命名,怎么保证不被替换。
------解决方案--------------------
先往数据库图片表里插入图片数据(除了图片地址),此时可以获得一个自增id,用这个自增id作为图片名,不会重复,图片处理完毕后,再更新图片表里的图片地址

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