Perl's .htaccess

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Nik
Forum Contributor
Posts: 138
Joined: Wed Jan 29, 2003 6:02 pm
Location: Thessaloniki, Greece

Perl's .htaccess

Post by Nik »

Hello, i'am making a prog (an elecronik atzenta tha people sign up and the can post or view records. In order for a user to post something when he hist the post button i want a .htaccess window to pop-up and ask him for user and pass! When he gives the correct user and pass then he is ok to post....but the problem is that .htaccess checks the .htpasswd file for username and password and not my mysql table members that has two filelds user and pass. How must i do to point .htaccess to compare the AUTH_USER and AUTH_PW to compare its values with my mebers records??
User avatar
releasedj
Forum Contributor
Posts: 105
Joined: Tue Jun 17, 2003 6:35 am

Post by releasedj »

If you have php installed as an apache module you can let php do it all.

Check out http://www.php.net/features.http-auth
Nik
Forum Contributor
Posts: 138
Joined: Wed Jan 29, 2003 6:02 pm
Location: Thessaloniki, Greece

Post by Nik »

thanks but iam trying to do this with perl not php.
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

You'll want to look into using mod_auth_mysql, and Apache module that uses .htaccess and MySQL.
Nik
Forum Contributor
Posts: 138
Joined: Wed Jan 29, 2003 6:02 pm
Location: Thessaloniki, Greece

Post by Nik »

i dont know where to find this info!
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

Post Reply