How do I either check for illigal characters in a string, or remove them? (I mean characters that can both be used in as filenames in Unix, Windows, and mysql)
I have made a script to upload files and create folders, and people should be able to give the files and folders names and rename.
However if they write something like this:
"my new/seminew folder"
"pictures/images from the weekend"
An error should be returned, not to mess up the sync between mysql, and the actual content their folder.
I dont know how to check for illigal characters, does anyone have this line of code??
I have made a script to upload files and create folders, and people should be able to give the files and folders names and rename.
However if they write something like this:
"my new/seminew folder"
"pictures/images from the weekend"
An error should be returned, not to mess up the sync between mysql, and the actual content their folder.
I dont know how to check for illigal characters, does anyone have this line of code??