Results 1 to 9 of 9

Thread: members only area...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448

    members only area...

    can someone help me make a members only area in any laguage i dont care wich one it is. XML HTML Java CGI whatever i would just like some help.

  2. #2
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    what languages are supported on your server?
    PHP with Mysql? Perl? CGI? Java? are you able to password protect certain directories using .htaccess?

    -Matt
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448
    can you help me with the last one? the .htaccess one. or i do have php and mysql access on my web host
    Last edited by Muk108; May 20th, 2002 at 04:40 PM.

  4. #4
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    if using .htaccess you will either have to manually update it for new members to login or write a php script to do that for you. If you want to use a php script I suggest just using php and mysql to handle your member area.

    If you decide to go with mysql and php, then the following is what you will need for your database, you can make your database via phpMyAdmin or using the sql statement provided:

    phpMyAdmin Database Setup:
    • field = id
      type = int
      length/values = 11
      null = not null
      extra = auto increment
      check primary and unique
    • field = username
      type = varchar
      length/values = 250
      null = not null
    • field = password
      type = varchar
      length/values = 250
      null = not null


    php sql Code:
    PHP Code:
    <?
      $sql = "create table members(id int(11) not null auto increment primary unique, username varchar(250) not null, password varchar(250) not null)";
      $query = mysql_query($sql);
    ?>
    The above php code has not been tested

    -Matt
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448
    how easy would it be to make that script to write to the .htaccess file?

  6. #6
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    harder than it would be to use cookies and a mysql database.
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448
    ooo well i have something that is for the .htaccess file

    is this what it sould look like?

    AuthUserFile \passwordfile.pwd
    AuthName "Secure Area"
    AuthType Basic
    require valid-user

    and the passwordfile should look like this...

    muks:password (?password?)
    muk:pass (?username?)

  8. #8
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    yes
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448
    ok well i tryed that and it doesnt accept my username and password? or do i have to set where it goes?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width