Home  >  Article  >  Backend Development  >  php删除文件夹上指定文件。要代码吧,多谢,不要复制

php删除文件夹上指定文件。要代码吧,多谢,不要复制

WBOY
WBOYOriginal
2016-06-13 13:15:10799browse

php删除文件夹下指定文件。要代码吧,谢谢,不要复制啊
比如upload文件夹下的111.txt

------解决方案--------------------
unlink('./upload/111.txt');//注意路径正确

不要复制啥意思?难道复制的就不能用?
------解决方案--------------------
do{
echo "[书名]:{$sbxw['falsename']}删除该书{$sbxw['id']}
";
}while($sbxw = mysql_fetch_array($sql));

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