强行删除空间里的垃圾文件
如果你通过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);
?> 有些高深 55555555对俺来说简直就是天书!
页:
[1]