Cannot delete file..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mikegotnaild
Forum Contributor
Posts: 173
Joined: Sat Feb 14, 2004 5:59 pm

Cannot delete file..

Post by mikegotnaild »

Ok I have 2 files that i cannot delete from my web server (Prohibited file name: Beowulf - Breakin'' Me Down2.mp3 and i believe this is because when they were uploaded it added a \ to the file name because there was a ' in the original file name. So how do i delete these files?
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Do you have root axx on that server ?
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

What does your code look like that does the delete?
It might just be a simple case of quiting the filename, eg "$filename" instead of $filename
mikegotnaild
Forum Contributor
Posts: 173
Joined: Sat Feb 14, 2004 5:59 pm

Post by mikegotnaild »

Oh no i mean i cannot delete this file simply from my ftp program.

That error shows up in smartftp when i try to delete those files that have the added slashes \
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

tried using a command line ftp client and the multi-delete command? you usually can specify wildcards with those, it may work.
Post Reply