PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > password constraints
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
password constraints

Réponse
 
LinkBack Outils de la discussion
Vieux 12/06/2008, 22h18   #1
Pakku
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut password constraints

Hi,
Wondering if someone could point me to a piece of code that checks to
see if password being created is at least 8 char long and has a number
and a special character...
Thanks
  Réponse avec citation
Vieux 13/06/2008, 00h04   #2
Leigh Finch
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: password constraints

Pakku wrote:
> Hi,
> Wondering if someone could point me to a piece of code that checks to
> see if password being created is at least 8 char long and has a number
> and a special character...
> Thanks


Hi Paku,
You want to look at regular expressions
http://au2.php.net/manual/en/ref.pcre.php

I've found this to be useful in learning regular expression syntax as well
http://www.regular-expressions.info/

The alternative method is to use a whole heap of strpos and check if the
result !== false
http://au2.php.net/manual/en/function.strpos.php

--
Hope this s, Cheers
Leigh Finch
www.phpmaniac.net
  Réponse avec citation
Vieux 13/06/2008, 04h02   #3
Pakku
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: password constraints

On Jun 12, 7:04pm, Leigh Finch <feiyan...@gmail.com> wrote:
> Pakku wrote:
> > Hi,
> > Wondering if someone could point me to a piece of code that checks to
> > see if password being created is at least 8 char long and has a number
> > and a special character...
> > Thanks

>
> Hi Paku,
> You want to look at regular expressionshttp://au2.php.net/manual/en/ref.pcre.php
>
> I've found this to be useful in learning regular expression syntax as wellhttp://www.regular-expressions.info/
>
> The alternative method is to use a whole heap of strpos and check if the
> result !== falsehttp://au2.php.net/manual/en/function.strpos.php
>
> --
> Hope this s, Cheers
> Leigh Finchwww.phpmaniac.net


Thanks- I had just stumbled across that regular-expressions link in a
different context and was planning on reading it. This is
synchronicity- I must read it now!
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 06h01.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13403 seconds with 11 queries