Re: Getting substring for password checking
| From: | Ryan J Nichols | Date: | Sun, 09 Jul 2000 20:07:29 +0000 |
| Subject: | Re: Getting substring for password checking | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5588@lists.php.net to get a copy of this message | ||
substr($string, 5);
that'll take the 5th char and on
hope this helps
ryan
----- Original Message -----
From: Thomas Edison Jr. <thomasedisonjr@yahoo.com>
To: <php-general@lists.php.net>
Sent: Sunday, July 09, 2000 1:56 AM
Subject: [PHP] [PHP-GENERAL] Getting substring for password checking
> We have a bunch of passwords in our database. We want
> an authentication script that checks the first few
> characters from the password string to match and
> ignore the rest.
>
> For eg:-, let's say we got a bucnh of passwords
> beggining with "X500.." and another bunch beggining
> with "X600.." , we just have authenticate the password
> sent by the user to match with either of these two,
> irrispective of what characters follow, how can this
> be done.
>
> In Javacsript we had the substring, charAt, indexOf
> functions which could help in such a case. What do we
> have in PHP to help with this?
>
> Tnanx,
>
> T. Edison jr.
>
>
>
>
>
> =====
> Rahul S. Johari (Director)
> ******************************************
> Abraxas Technologies Inc.
> Homepage : http://www.abraxastech.com
> Email : abraxastech@yahoo.com
> Tel : 91-4546512/4522124
> *******************************************
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>