#1
  1. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    I am working on a site for a client who has a "members area" on his site where people pay so much each year then they get a username and password, which gives them access to a members area folder, protected by the .htaccess method. How can I have it so that he types in the desired username and password in a form and it gets added to the .htpasswd file? Also, it'll need to check that that username isn't taken already (if possible)

    Thanks.
  2. #2
  3. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    There is an nice tutorial on this on WebMonkey's site, look under "encryption".

    Also, another way to do this would be to use an SQL database, with the usernames' and encrypted passwords.

    There's also several examples of this in thickbooks.com's tutorials. As well as example scripts.

    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.
  4. #3
  5. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    thickbooks.com is closed for renovations, and I couldn't find anything in Webmonkey about encryption
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    HE, a little trick. Use this link:
    http://www.thickbook.com/extra/index.phtml?t=misc

    and it should get you to the old tutorials.

Similar Threads

  1. Replies: 3
    Last Post: February 17th, 2004, 10:08 AM
  2. How to write a PHP script to remove a file?
    By xmxpcom in forum PHP Development
    Replies: 2
    Last Post: February 16th, 2004, 05:58 PM
  3. How to see the Memory used by a PHP script?
    By Pardall in forum PHP Development
    Replies: 4
    Last Post: February 13th, 2004, 03:54 PM
  4. Change this PHP script to use NETPBM instead of GD
    By hknight in forum Project Help Wanted
    Replies: 1
    Last Post: February 10th, 2004, 11:46 AM
  5. PHP file upload script trouble
    By casbboy in forum PHP Development
    Replies: 9
    Last Post: February 5th, 2004, 07:42 PM

IMN logo majestic logo threadwatch logo seochat tools logo