Re: What is the Basic function to encode the password upon the authentication..
| From: | John W. Holmes | Date: | Wed, 31 Dec 2003 00:16:41 +0000 |
| Subject: | Re: What is the Basic function to encode the password upon the authentication.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173512@lists.php.net to get a copy of this message | ||
Scott Fletcher wrote:
Encoding it for what? It comes into PHP as a $_SERVER variable in plain text. If you want to compare it to an .htaccess type password, then I think crypt() is what you need. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.comWhat is the function exactly for encoding the user's typed password inPHP after the HTTP Authentication pop-up window by Apache was submitted? I tried the base64_encode() but it is not the right function. The authentication header here is .. --snip--header('WWW-Authenticate: Basic realm="My Private Stuff"'); header('HTTP/1.0 401 Unauthorized');--snip--