Wrox Programmer Forums
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 7th, 2004, 05:41 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default password4user

i've seen some applications e.g., 'phpbb forums' generate passwords like 'HilImaXd' for user. (see hump/camel notation)
what php function do this 'hump' ?

__________________
`~@#\^%&*/\.<.\/-|+|_!:;..=?>
PHP, SEO | anshul shrivastava | mediasworks.org | FB
 
Old November 17th, 2004, 04:04 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

i m using this code:

$user=strtolower($_POST['user']);
$email=strtolower($_POST['email']);
$temp=md5(serialize($user.$email));
$password=substr($temp,0,8);

e.g. a305df99
but i don't like it - anyone can generate passwords (him/her)self
how can we get hump notation + how to pick random chars for $temp
using substr(), it picks first 8 characters

please cue a better method










Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.