DBM authentication and PHP

From: Date: Thu, 26 Oct 2000 05:53:50 +0000
Subject: DBM authentication and PHP
Groups: php.general 
Request: Send a blank email to php-general+get-22057@lists.php.net to get a copy of this message
I get advice to protect directory with DBM. I created dbm file with PHP script: [CODE] $db = dbmopen("/home/domain/secret/test", "n"); dbmclose($db); [/CODE] And than .htaccess file: [CODE] AuthDBMUserFile /home/domain/secret/test AuthName Protected_Area AuthType Basic require valid-user [/CODE] And now question. How to crypt password that will suit for authentication? I know this could be done with perl script but I need PHP because I already have PHP script for web aplication where user can change their password. Thanks for any advice! Anzej

« previous php.general (#22057) next »