使用PHP删除带有斜杠的文件

I made an app, and when it was tested, the tester made a file named: "Joe'sTestPage". Which amounted into: "Joes\'TestPage.htm". M problem is that the file is undeletable because of the slash in the name. I have tried using my ftp in my cpanel, but that cant delete it either.

Does anyone know of a solution?

You should be able to delete it from within PHP. If necessary, double escape the backslash:

unlink("Joes\\'TestPage.htm");

Make sure you're escaping the backslash when you delete

Alternatively...

I assume you do not have SSH access to the server. If you did, you could let your shell auto-complete the filename. If you cannot resolve the issue, email your host/datacenter (It sounds like you're in a shared hosting environment) and have them remove the file.