Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#108811 - 01/08/2002 16:39 PHP and Apache-style htpasswd files
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
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.
_________________________
Bitt Faulk

Top
#108812 - 01/08/2002 16:55 Re: PHP and Apache-style htpasswd files [Re: wfaulk]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
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

Top
#108813 - 01/08/2002 16:59 Re: PHP and Apache-style htpasswd files [Re: drakino]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
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.
_________________________
Bitt Faulk

Top