I need to delete old files with special characters in filenames like space,,,(,),! and so on via PHP. Classic unlin
,
(
)
!
unlin
The way I do it in Linux is to use absolute paths, like "rm ./filename" that is dot slash.
You can also use escape charachters. Like "rm \-filename" that is - backspash hyphen.