Jump to content

Archived

This topic is now archived and is closed to further replies.

Wildhalf

Login to Password Protected Directories using PHP and MYSQL

Recommended Posts

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 you

Kieron

Share this post


Link to post
Share on other sites
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.php
http://www.phpfreaks.com/tutorials/65/0.php

They show how to create membership systems.

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
A members area will do the trick
Look at the tutorials posted by GingerRobot

Share this post


Link to post
Share on other sites
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 that

thanks again

Kieron

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.