Home > Backend Development > PHP Tutorial > 小弟我用ci框架,实现了图片的上传,但当小弟我删除的时候,并没有在文档中删除掉图片,小弟我需要如何做

小弟我用ci框架,实现了图片的上传,但当小弟我删除的时候,并没有在文档中删除掉图片,小弟我需要如何做

WBOY
Release: 2016-06-13 12:21:55
Original
971 people have browsed it

我用ci框架,实现了图片的上传,但当我删除的时候,并没有在文档中删除掉图片,我需要怎么做
我用ci框架,实现了图片的上传,但当我删除的时候,并没有在文档中删除掉图片,只是把数据库中了一些内容删除掉,我需要怎么做
------解决思路----------------------
ulink(path)
------解决思路----------------------
先打印图片路径,看看是否正确。
if(file_exists($file)){
    unlink($file);
}

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template