You are here: Re: [PHP] User Passwords: checking for unique chars « PHP « IT news, forums, messages
Re: [PHP] User Passwords: checking for unique chars

Posted by Alex Gemmell on 10/04/10 11:08

Wow - good job! That nailed it and in one neat line too!

Thanks very much Richard and thanks also to Mike for his help too.
I'm really liking these php lists!

On Mon, 14 Feb 2005 09:41:00 -0800 (PST), Richard Lynch <ceo@l-i-e.com> wrote:
> Alex Gemmell wrote:
> > I'm checking user chosen passwords for validity and have created 7
> > tests. It's not 100% bulletproof but it will do for now. My problem
> > is with the last check "have 6 unique characters". I'm at a loss at
> > how to check for this in a neat one-liner.
>
> if (count(count_chars($password, 1)) < 6) return false;
>
> http://php.net/count_chars
>
> No regex at all :-)
>
> --
> Like Music?
> http://l-i-e.com/artists.htm
>
>

--
Alex Gemmell
|:| agemmell@gmail.com |:|

 

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

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