Quote:
|
Originally Posted by darksoap
If someone could point me to a script that would use php/mysql database.
Thanks
Soap
|
when you look for a simple solution try this
Just copy this code right under the first line *<?php*
$auth = 0;
if (($PHP_AUTH_USER == "here-username" ) && ($PHP_AUTH_PW == "here-pass" )) $auth = 1;
if ( $auth != 1 ) {
header('WWW-Authenticate: Basic realm="Private Site"');
header( "HTTP/1.0 401 Unauthorized" );
echo 'Authorization Required! ';
exit;
}
and change the username and pass
