- 在线时间
- 6946 小时
- 信誉
- -76
- 金钱
- 51631
- 贡献
- 891
- 最后登录
- 2022-6-27
- 注册时间
- 2007-10-13
- 帖子
- 34437
- 精华
- 1
- 积分
- -76
- 阅读权限
- 200
- UID
- 1
- 贡献
- 891
- 金钱
- 51631
- 积分
- -76
- 帖子
- 34437
|
如果你通过FTP在上传文件的时候发现自己的空间里发现有类似于.pureftpd-upload.446e2f48.15.1dc1.3385a655的文件无法删除(据说是 FTP 断点上传的临时文件;正常退出 FLASHFXP 时候自动删除的)可以建立一个PHP文件something.php,内容如下(PHP语法的格式请自己补齐):
$myFile = '.pureftpd-upload.446e2f48.15.1dc1.3385a655';
unlink($myFile);
?>
然后把something.php文件传入到与这个文件相同的目录中,再把这个目录的权限修改成777.然后在浏览器中运行something.php。
比如http://www.example.com/path/something.php。
这样就可以删除那个该死的文件了。
如果你发现了多个文件可以在something.php中多加几句话:
$myFile = '.pureftpd-upload.446e2f48.15.1dc1.3385a655';
unlink($myFile);
$myFile2 = '.pureftpd-upload.1iU1dkC5.25.qN26.qN446e28';
unlink($myFile2);
?>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Let say you have undeletable file called.pureftpd-upload.446e2f48.15.1dc1.3385a655 in on your site you cantremove, well there is a simple solution to this problem.
You can create a PHP file called something.php, and place this code into it
$myFile = '.pureftpd-upload.446e2f48.15.1dc1.3385a655';
unlink($myFile);
?>
Now upload something.php to the folder that has the stubbornpureftpd-upload file in it, and change the persimmons of the folder to777 (and something.php) via CHMOD.
Next open something.php in you web browser via your domains URL, as anexample; web page http://www.example.com/path/something.php
Now the file has been deleted.
You MUST delate something.php and return the folder to the originalCHMOD (Normally 644) once you remove the folder for security.
If you have more then one .pureftpd-upload just make additional lines with the file such as
$myFile = '.pureftpd-upload.446e2f48.15.1dc1.3385a655';
unlink($myFile);
$myFile2 = '.pureftpd-upload.1iU1dkC5.25.qN26.qN446e28';
unlink($myFile2);
?> |
|