hi, i am wondering with php is there a function like addslashes that works on file names?
eg turns "abc(def) - hij -.test" into "\abc(def)\ -\ hij\ -.test"?
I want to render harmless all the nasty characters like "-", "@", "(", ")", etc...
The problem is that different operating systems have different ideas about what constitutes a "nasty character". It would be a simple matter to write your own, however; in fact, a single call to str_replace() would do the trick.