Jump to content

Recommended Posts

Hello

 

For the past week I have looked at many tutorials with references to password protection of parts of websites using PHP and MYSQL.

 

There are indeed many tutorials but all that I have read fall short of being able to explain clearly what is required to implement such protection.

 

There are many cut and paste examples but having cut and pasted the user as gained no real knowledge. Surely learning PHP is not just about reading the manual, but seeing examples of code and having the code explained and experimenting with it, making mistakes and correcting them in a non critical environment.

 

Does anyone know of a good tutorial that will explain the workings of such a system.

 

Regards

Link to comment
https://forums.phpfreaks.com/topic/85834-tutorials/
Share on other sites

Hmm there was a good one in Linux Format a while ago I think. I don't know if you'll find an online version though.

 

Setting up a server, PHP and MySQL can be a bit crazy if you're not sure what you're doing though. I would recommend installing something like XAMPP (google it) if you want to do testing on your own computer. Otherwise you'll need a web-host that has PHP and MySQL installed.

 

Once you've got that you should be able to find some decent tutorials on this site.

Link to comment
https://forums.phpfreaks.com/topic/85834-tutorials/#findComment-438089
Share on other sites

I kinda know what you mean.  The idea of Password protected areas and a Registration system kind of go hand in hand.  So find a tutorial that shows you how to build a Registration system, where users login and authenticate.  Then once that is done, all you have to do is make a new field in the DB as a Role, then assign their rights there.  Like have the Role field contain "user", "staff", "member"

 

Then on each page or feature you want protected, you just check their Role and proceed accordingly.

Link to comment
https://forums.phpfreaks.com/topic/85834-tutorials/#findComment-438094
Share on other sites

Hello

 

Thanks for your quick response.

 

I have Xampp set up and working correctly on my local test computer and I have created a test site all of which is working and getting and displaying informatioon from a database.

 

What I need now is to go one step further and lean how to protect a site.

 

Regards

Link to comment
https://forums.phpfreaks.com/topic/85834-tutorials/#findComment-438098
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.