Just been playing with the PEAR::Auth class in PHP. The ability to authenticate a user from a wide range of sources (a file, a DB table, samba passwords, IMAP/POP3, LDAP, RADIUS, SOAP etc) is very cool. Each time I code a site that requires authentication I'm always (I know, I should have written a class already) coding up my own authentication module for it but now that I've discovered PEAR::Auth it will be a little bit easier. Now all I've got to do is read some docs for it and have a play around.
Incidentally, if you've got PEAR installed on your webserver, check out the go-pear.php script in the PEAR distribution directory. You can use it to ensure that you have the most up to date PEAR distribution. The steps are:
.. and you're all fresh!
Incidentally, if you've got PEAR installed on your webserver, check out the go-pear.php script in the PEAR distribution directory. You can use it to ensure that you have the most up to date PEAR distribution. The steps are:
$ php -q go-pear.php (then follow your nose)
$ pear download-all
$ pear upgrade-all
.. and you're all fresh!

