hellllloi,
I'm a newbie......... I'm looking for a username and password login script and instructions on how to install it. I catch on pretty quick and remember what I've learned. I could really use your help.
Regards
In hope that you have already installed PHP, and a web server to test on:
Take this tutorial if you don't know PHP basics: http://hotwired.lycos.com/webmonkey/01/48/index2a.html?tw=programming
Then here you can find user identification scripting information: http://hotwired.lycos.com/webmonkey/00/05/index2a.html?tw=programming
Good Luck!
Take Care ~ThoughtRiot
Originally posted by millergroup I'm looking for a username and password login script and instructions on how to install it.
Seems like there's a good one at either php.net or zend.com....
Do a little searching...they're out there.
dalecosp
Been looking, looking, looking............... Mabye I'm using the wrong search term.
What is the right term? Any one know?
http://www.hotscripts.com/PHP/Scripts_and_Programs/User_Authentication/
Originally posted by millergroup Been looking, looking, looking............... Mabye I'm using the wrong search term. What is the right term? Any one know?
http://www.zend.com/codex.php?CID=341
says they have 10 different scripts.
G'luck
Here you go...
$user = 'username'; $pass = 'password'; if(!$_SERVER['PHP_AUTH_USER'] || !$_SERVER['PHP_AUTH_PW'] || $_SERVER['PHP_AUTH_USER'] != $user || $_SERVER['PHP_AUTH_PW'] != $pass) { header('WWW-Authenticate: Basic realm=Buzz off!'); header('HTTP/1.1 401 Unauthorized'); die('Buzz off!'); } echo 'Congratulations.';