I need a Members Login/Registration Password protect .htaccess and .htpasswd script. does anyone know of a good one that is FREE I am on A Unix server and do have MySQL
Password protect script Needed
Collapse
X
-
you get what you pay for, contact ray @ strongbox you nOOb -
Include in your headers:
PHP Code:include('authenticate.php');
File authenticate.php:
PHP Code:<?php function authenticate() { header('WWW-Authenticate: Basic realm="Admin"'); header('HTTP/1.0 401 Unauthorized'); print "NOT AUTHORIZED"; exit; } if (!isset($_SERVER['PHP_AUTH_USER'])) { authenticate(); } else { $result = mysql_query("SELECT * FROM user_table WHERE username='$_SERVER[PHP_AUTH_USER]' and password='$_SERVER[PHP_AUTH_PW]' LIMIT 1"); if (mysql_num_rows($result)) { $user = mysql_fetch_array($result, MYSQL_ASSOC); } else { authenticate(); }} ?>
Best Regards,
Adult SEOThe key to get ranked one in Google is to provide the best.Comment
-
Just use strongbox, costs you $100 but you get some good stuff.Comment
-



Comment