You are here: Re: [PHP] Got a makestringsafe_for_filename() function? « PHP « IT news, forums, messages
Re: [PHP] Got a makestringsafe_for_filename() function?

Posted by Rory Browne on 10/20/11 11:19

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

On 6/22/05, René Fournier <m5@renefournier.com> 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
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация