Jump to content

Login to Password Protected Directories using PHP and MYSQL


Wildhalf

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.