aztec Posted January 13, 2008 Share Posted January 13, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/85834-tutorials/ Share on other sites More sharing options...
Fyorl Posted January 13, 2008 Share Posted January 13, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/85834-tutorials/#findComment-438089 Share on other sites More sharing options...
revraz Posted January 13, 2008 Share Posted January 13, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/85834-tutorials/#findComment-438094 Share on other sites More sharing options...
aztec Posted January 13, 2008 Author Share Posted January 13, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/85834-tutorials/#findComment-438098 Share on other sites More sharing options...
revraz Posted January 13, 2008 Share Posted January 13, 2008 I just told you how. What I need now is to go one step further and lean how to protect a site. Regards Quote Link to comment https://forums.phpfreaks.com/topic/85834-tutorials/#findComment-438100 Share on other sites More sharing options...
Fyorl Posted January 13, 2008 Share Posted January 13, 2008 I'm pretty sure the tutorial I used was one I found on this site. I'll go and have a look for you. Quote Link to comment https://forums.phpfreaks.com/topic/85834-tutorials/#findComment-438104 Share on other sites More sharing options...
aztec Posted January 13, 2008 Author Share Posted January 13, 2008 Hello Thanks revraz our posts crossed in the system Regards Quote Link to comment https://forums.phpfreaks.com/topic/85834-tutorials/#findComment-438105 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.