RE: [PHP] Using PHP and Apache's .htaccess files.

From: Date: Thu, 20 Jun 2002 19:21:09 +0000
Subject: RE: [PHP] Using PHP and Apache's .htaccess files.
Groups: php.general 
Request: Send a blank email to php-general+get-103198@lists.php.net to get a copy of this message
> -----Original Message----- > From: Todd Fernandes [mailto:tfernand@impole.com] > Sent: Thursday, June 20, 2002 3:07 PM > The way I have it working now is that I check to see if > $PHP_AUTH_USER is > set, and if it is, I send them to the page that is a > directory down behind > the .htaccess file. Working that way, if they are an invalid > user, they are > prompted again, if they hit cancel, they get the 401 page. I > want to give > them a custom error message instead of the generic 401 page. Might be easier to crypt() the password and stuff it in a mysql db. Then check the crypted user input against the db value to authorize.

« previous php.general (#103198) next »