Home >Backend Development >PHP Tutorial >unlink(),该怎么解决

unlink(),该怎么解决

WBOY
WBOYOriginal
2016-06-13 12:06:501155browse

unlink()
用unlink删除文件的时候文件名必须包含扩展名吗!!!!
------解决思路----------------------
加吧 不加没试过
------解决思路----------------------
完整的文件名

如果

1.jpg  1.php 1.fun.php  

那不是乱套了?
------解决思路----------------------
那是必须的,不加后缀怎么行?
------解决思路----------------------
他是针对一个文件的操作,你不加他怎么知道你要删除哪个?
------解决思路----------------------
unlink是针对文件(带有扩展名)

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