[PHP] Got a makestringsafe_for_filename() function?

2005-06-22 Thread René Fournier
I imagine some of you have written a nice little function for taking an arbitrary user-input string, and sanitizing and cleaning it for us as a UNIX (Mac OSX) filename... Would you mind sharing it? Thanks. René --- René Fournier www.renefournier.com -- PHP General Mailing List

Re: [PHP] Got a makestringsafe_for_filename() function?

2005-06-22 Thread Rory Browne
I'm sure you could do something with preg_replace(#[^a-zA-Z0-9_]#, , $input); On 6/22/05, René Fournier [EMAIL PROTECTED] wrote: I imagine some of you have written a nice little function for taking an arbitrary user-input string, and sanitizing and cleaning it for us as a UNIX (Mac OSX)