PHP and Apache-style htpasswd files

Posted by: wfaulk

PHP and Apache-style htpasswd files - 01/08/2002 16:39

Does PHP provide functions to deal with Apache-style htpasswd files? I mean, it's not like it's difficult to just parse it myself (explode() seems obvious enough), but it seems like that's something that would be built in to PHP.
Posted by: drakino

Re: PHP and Apache-style htpasswd files - 01/08/2002 16:55

Nothing built in, but there is a class file I use on the empeg logo site. Let me dig it up...

Ahh, here it is, it's from the PHP3 days, but still works fine. http://www.thewebmasters.net/php/Htpasswd.phtml
Posted by: wfaulk

Re: PHP and Apache-style htpasswd files - 01/08/2002 16:59

Since I don't need to manipulate the file, but just read it, I think I'll stick with just dealing with it manually if there's no built-in function. Thanks for confirming the non-existence, though.