Jump to content

Recommended Posts

Posted

Hi all.

 

I have a strange problem. I have a script that uploads files. Somebody uploaded a photo with an apostrophe in the filename. The php script escaped it with a reverse slash. Result - I have a file I cannot delete, rename or move. Neither with an ftp client nor via CPanel. The filename looks like this: newyear\'04.jpg. When I try to rename it with an ftp client, it complains about an "illegal name". CPanel says "file not found".

 

Hm.

 

Anybody knows what to do?

 

Thanks!

Posted

I'll do it, I just don't like to disturb busy people with stupid stuff like this and hoped that somebody would find a simple solution. I tried to check all the manuals I have but couldn't find anything on the issue.

 

I'll modify the PHP script to avoid this in the future, but I wonder how nobody got into a situation like this before...

 

Thanks for you reply!

Posted

It's done. No problem asking for those types of things. We will get it when we get the chance and it only takes a second. It helps when you give the exact path and filename (which you did) so that we don't have to go searching. It also helps when you give the server number. Those are the types of details that will result in quick replies. :)

Posted
Those are the types of details that will result in quick replies. :)

And this one was quick. ;) I put the server number in the "Server name" field, was that the correct place?

 

Thanks!

Posted

Yep. That's the right place. That one little detail helps us quite a bit. Without it we have to look up your domain. Doesn't take long but is one more step.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...