Re: Got a makestringsafe_for_filename() function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm sure you could do something with 
preg_replace("#[^a-zA-Z0-9_]#", "", $input);

On 6/22/05, René Fournier <m5@xxxxxxxxxxxxxxxx> 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) filename...
> 
> Would you mind sharing it? Thanks.
> 
> ....René
> 
> ---
> René Fournier
> www.renefournier.com
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux