What is the thing that is troubling you? This is not a code repository or rent-a-coder type website, so you need to show where you're at or explain exactly where you have problems.
i would not, as a matter of course, store an unencrypted password in a database. i tend to use md5 hashes to crypt the password.
this makes simple password recovery scripts a nonsense of course!
instead a password recovery script would generate a new password and write the new crypted value of the pwd to the database. there would also be a one-time flag against the pwd so that when the user receives the new pwd and logs in with it, he is forced to change the password.
Any book suggestions on advanced PHP? I've searched Amazon and found the "Bible" for Dreamweaver MX 2004, and some for advanced PHP web design with Dreamweaver.
i've never used a book on php, i'm afraid. i assume that i should be able to achieve my aims using php and then spend time on php.net when i run into difficulties.
one thing i have learned from hard experience is nearly always the problems that i have, have been solved multiple times and often made into robust PEAR packages.
this forum sees a lot of questions about authentication and access control and i guess this is because it is a good script challenge for people to learn from. although i have built and use my own i'd recommend to others that they investigate PEAR and if they really want to learn some good quality programming, examine the source of the pacakges to see how they are put together. there are a number of great authentication and user handling scripts that are maintained within PEAR (pear.php.net)
i don't mean to put you off books on the subject - i just don't know of any good ones to recommend.
on the subject of dreamweaver - i have to admit to using this myself but i often ask myself why. it's not great for coders (not better than any number of the freeware code programs out there) and i don't do much web design myself so rarely use the design features. I am not a fan of the server behaviours within dreamweaver as i have found them to be too restrictive or at least different to the way that i like things done!
if you're interested in a copy of my login script, let me know.
That's what I like about your replies....the different ideas and perspectives. This is great...thanks a lot!
jpadie...sure, I'll take a shot at your script. I'm a bit new, so it will be nice to look at and learn from it.
Bogiemon....thanks for the book recommendation. I've been checking out Amazon for some ideas. PHP.net has an e-mail tutorial I'm going to check out for a possible solution to a "click to subscribe to these monthly newsletters" application I'm doing. I'm not too sure if the host,
after thinking about it some more i realised that my potted script has heavy reliance on two pear classes: html_quickform and db. this would be a steep learning curve!
so i've written a quick replacement without reliance on external classes. i haven't fully tested it and in particular i haven't included any string escape code for handling form submits.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.