Page 2 of 2
Re: How to create string PAssword, PaSsword, etc.
Posted: Fri May 28, 2010 1:40 am
by Apollo
Jonah Bron wrote:Sorry Apollo, I stole your avoid-strtoupper-every-time idea. If it's any consolation, I probably would have come up with it eventually... Please don't strike me down with a bolt of lightning

Hehe no of course, it's not a contest, we're here for entertainment and learning. And I certainly learned from your approach, so thanks
Jonah Bron wrote:Any minute Feyd is going to make one that's faster than yours and smaller than mine.
Hehe yeah probaby, already wondered what kept him so long

Re: How to create string PAssword, PaSsword, etc.
Posted: Fri May 28, 2010 2:42 am
by Brenden
Personally I would put each word in once, in lowercase, then run strtolower() on any word before searching for it in the database. But perhaps I'm just not complicated enough.
Re: How to create string PAssword, PaSsword, etc.
Posted: Fri May 28, 2010 3:29 am
by Apollo
Brenden wrote:Personally I would put each word in once, in lowercase, then run strtolower() on any word before searching for it in the database.
In fact, I would use utf8_general_ci collation and don't mind about upper or lowercase at all.
But perhaps I'm just not complicated enough.
Worse yet, you take all the fun out of challenges like these!

Re: How to create string PAssword, PaSsword, etc.
Posted: Fri May 28, 2010 9:31 am
by Jonah Bron
The "bolt of lightning" was a reference to your username
Peace