Wildhalf Posted August 20, 2006 Share Posted August 20, 2006 Hi All,My problem is i am new to PHP but understand it. What i am trying to do is create a login using PHP and MySQL. The database is already made and working for another PHP program i downloaded but the code is encoded and i can't read it.SO i need help in protecting a directory maybe with .htaccess and using a mysql database with the passwords or is there any other way..thank youKieron Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted August 20, 2006 Share Posted August 20, 2006 Why is that you need to password protect directories? A login system would usually use sessions.There are a couple of tutorials on here which could help you:http://www.phpfreaks.com/tutorials/40/0.phphttp://www.phpfreaks.com/tutorials/65/0.phpThey show how to create membership systems. Quote Link to comment Share on other sites More sharing options...
Wildhalf Posted August 20, 2006 Author Share Posted August 20, 2006 I want to password protect a directory as i already have a database in use with a PHP script and i want to use the login info from this database to let my users login to another private area... Quote Link to comment Share on other sites More sharing options...
onlyican Posted August 20, 2006 Share Posted August 20, 2006 A members area will do the trickLook at the tutorials posted by GingerRobot Quote Link to comment Share on other sites More sharing options...
Wildhalf Posted August 20, 2006 Author Share Posted August 20, 2006 Thank you for your help GingerRobot! I used http://www.phpfreaks.com/tutorials/40/0.php tutorial. It is missing a few bits and pieces that can be got from the other tutorial.But i now have the PHP running completely all i have to do is modify the login area and thatthanks againKieron Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.