Hello. I'm trying to set up a private section of my website for testing and I'm having a problem where my .htaccess / .htpasswd protection always rejects my password. I've set permissions to 604 on both files as recommended by my web host and both files reside in the same subfolder. At first I tried setting the password in the .htpasswd file from OS X's Terminal using the htaccess command. When that didn't work I hashed it using an online tool to generate the hash. It hashed differently but still doesn't work. I'm uploading via Fetch (FTP). If anyone has …
Reusable Code Snippet PHP functions to handle .htpasswd file
I wrote four simple functions to manipulate .htpasswd file ( Apache ).