NYCPHP Meetup

NYPHP.org

[nycphp-talk] user authentication

Mitch Pirtle mitchy at spacemonkeylabs.com
Sat Aug 28 23:54:56 EDT 2004


Chris Shiflett wrote:

>Ahhh, OK. HTTP Basic Authentication can be done with PHP:
>
>http://www.php.net/manual/en/features.http-auth.php
>
>This is probably the easiest way to implement this, but if you want to
>apply HTTP Basic Authentication to an entire directory, you can use a
>.htaccess file. Just create a file by this name, and you can put Apache
>configuration directives inside (just as if you were editing httpd.conf).
>

You could also bypass apache altogether and use PEAR::Auth, or 
PEAR::Auth_HTTP:

    http://pear.php.net/manual/en/package.authentication.php

I use PEAR::AUTH as often as possible, as it is pretty powerful (and 
easy to use).

-- Mitch



More information about the talk mailing list