PDA

View Full Version : Can't delete files



Budgiesmuggler
12-04-2006, 12:21 AM
I have a number of files that are showing as being 80mb etc. Yet when I click them I get a "no such file" message. How do I delete these files??

dixieau
12-04-2006, 04:41 AM
mmm, if you didn't put those files there and they are that big and not your backups I would be putting a ticket into BH.. especially if you can't delete them.

With all the security breaches across the internet recently it makes you wonder.

Budgiesmuggler
12-05-2006, 01:40 PM
These are actually files that I uploaded but that didn't upload correctly for some reason. They show up in my file manager list but when I click them I get a no such file error message and therefore can't even delete them.

user777
12-05-2006, 05:02 PM
I got the same/similar error. Incomplete uploaded file ended up having file name as ".pureftpd-upload.4512c10a.15.2f63.8a2a69ae"

[19:26:08] 550 Prohibited file name: .pureftpd-upload.4512c10a.15.2f63.8a2a69ae

Can't delete them. Annoying but I just ignored them 'cause submitting tickets is even more annoying (not sure whether they can delete the file themselves).

Let me know if there's any solution.

Basil
12-05-2006, 05:33 PM
<?php
$filename = "whatever.html";

if (file_exists($filename)) {
unlink($filename);
echo "The file <b>$filename</b> has been deleted successfully.";
} else {
echo "The file <b>$filename</b> does not exist, cannot continue.";
}
?>