In one of my local sites, I have a .htaccess and .htpasswd pair to protect access to a folder.
The folder to be protected is: g:\www\phottello\family\marriage_thibaut\
So, in this folder are the two files containing :
File .htaccess
AuthName "Photos avec accés restreint"
AuthType Basic
AuthUserFile "G:/www/phottello/famille/mariage_thibaut/.htpasswd"
require valid-user
and the .htpasswd file contains the user:password pairs:
user1:password1
user2:password2
But all this can be found in the Apache documentation - you just need to do a little research!
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons