I have a directory 'admin' that has been .htaccess'ed off. Ie, If you
point your browser at that directory, you will be prompted with an HTTP
authentication dialog. Nothing special about PHP or MySQL there. I like
the security that .htaccess and Apache give me.
Now, I have users in a MySQL table w
Earlier I posted a question about why the failure message in my HTTP
authentication script wasn't working. I figured out the answer. There
was no place to go if the user entered a username or password that
wasn't in the database.
Below is the corrected code.
John Hughes
\n");
} #END IF ON SQL
I have adapted a HTTP authentication script from Leon Atkinson's Core PHP
book. I've done something that stopped the failure message from displaying.
The password request works and valid users are sent to the correct page. But
instead of getting "This directory requires a user name and password"
ne, I'll eventually be an expert!
Rita.
-Original Message-
From: news.php.net [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 20, 2002 6:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] HTTP authentication
Dear Beau,
Thanks for your answer, and indeed.. it doesn't have too muc
AIL PROTECTED]]
// Sent: Monday, 21 January 2002 10:17 AM
// To: [EMAIL PROTECTED]
// Subject: Re: [PHP-DB] HTTP authentication
//
//
// Dear Beau,
//
// Thanks for your answer, and indeed.. it doesn't have too
// much to do with
// databases, although if an example of authentication using a
//
a "valid-user" (any valid combo from the file)
and
> if so, allows them access.
>
> you can get more information on all of this in the apache docuemntation at
> apache.org, search for "htaccess" and you might also be interested in the
> groups ability of the
ot;htaccess" and you might also be interested in the
groups ability of the system, so search for "htgroup" (i think)
hth
beau
// -Original Message-
// From: news.php.net [mailto:[EMAIL PROTECTED]]
// Sent: Monday, 21 January 2002 3:36 AM
// To: [EMAIL PROTECTED]
//
Heya,
I'm trying to find out how http header authentication works. For some reason
my webserver won't do it on a directory basis. But the problem is that the
documentation that came along with the PHP package doesn't help me much.
Can you guys give me a working example on how to use and implemen