Page 1 of 1

Perl's .htaccess

Posted: Mon Jun 23, 2003 4:18 pm
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??

Posted: Tue Jun 24, 2003 6:46 am
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

Posted: Tue Jun 24, 2003 10:34 am
by Nik
thanks but iam trying to do this with perl not php.

Posted: Tue Jun 24, 2003 10:57 am
by jason
You'll want to look into using mod_auth_mysql, and Apache module that uses .htaccess and MySQL.

Posted: Tue Jun 24, 2003 3:09 pm
by Nik
i dont know where to find this info!

Posted: Tue Jun 24, 2003 4:38 pm
by cactus