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 Link to comment https://forums.phpfreaks.com/topic/18085-login-to-password-protected-directories-using-php-and-mysql/ 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. Link to comment https://forums.phpfreaks.com/topic/18085-login-to-password-protected-directories-using-php-and-mysql/#findComment-77501 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... Link to comment https://forums.phpfreaks.com/topic/18085-login-to-password-protected-directories-using-php-and-mysql/#findComment-77520 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 Link to comment https://forums.phpfreaks.com/topic/18085-login-to-password-protected-directories-using-php-and-mysql/#findComment-77524 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 Link to comment https://forums.phpfreaks.com/topic/18085-login-to-password-protected-directories-using-php-and-mysql/#findComment-77638 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.