Re: [PHP] PHP generated AuthUserFiles?
On Fri, 10 Oct 2003, MIKE YRABEDRA wrote: > Is there a way to let PHP generate the necessary AuthUserFiles for use with > .htaccess? http://pear.php.net/package/File_HtAccess http://pear.php.net/package/File_Passwd -- Mika Tuupola http://www.appelsiini.net/~tuupola/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP generated AuthUserFiles?
On Fri, 10 Oct 2003 06:34:43 -0400, you wrote: >Is there a way to let PHP generate the necessary AuthUserFiles for use with >.htaccess? > >I don't allow my clients the ability to use .htpasswd in the command line. > >From what I see, the user file is just a text file with the username and the >encrypted password. Hashed, not encrypted. Use crypt() http://uk2.php.net/crypt I'd bet money that a class to handle this already exists, though. http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=php+htaccess Ah. That was easy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP generated AuthUserFiles?
Is there a way to let PHP generate the necessary AuthUserFiles for use with .htaccess? I don't allow my clients the ability to use .htpasswd in the command line. >From what I see, the user file is just a text file with the username and the encrypted password. TIA ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock.com, MacAgent.com and MacShirt.com ++ W: http://www.323inc.com/ P: 770.382.1195 F: 734.448.5164 E: [EMAIL PROTECTED] I: ichatmacdock ++ "Whatever you do, work at it with all your heart, as working for the Lord, not for men." ~Colossians 3:23 <{{{>< ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php