|
-
May 20th, 2002, 03:17 PM
#1
Thread Starter
Hyperactive Member
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.
-
May 20th, 2002, 03:35 PM
#2
Fanatic Member
what languages are supported on your server?
PHP with Mysql? Perl? CGI? Java? are you able to password protect certain directories using .htaccess?
-Matt
-
May 20th, 2002, 04:00 PM
#3
Thread Starter
Hyperactive Member
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.
-
May 20th, 2002, 04:59 PM
#4
Fanatic Member
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
-
May 20th, 2002, 09:08 PM
#5
Thread Starter
Hyperactive Member
how easy would it be to make that script to write to the .htaccess file?
-
May 20th, 2002, 09:11 PM
#6
Fanatic Member
harder than it would be to use cookies and a mysql database.
-
May 20th, 2002, 09:24 PM
#7
Thread Starter
Hyperactive Member
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?)
-
May 20th, 2002, 09:38 PM
#8
Fanatic Member
-
May 20th, 2002, 10:05 PM
#9
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|