This is a discussion on "Question about User loggins from an idiot" within the PHP Forum section. This forum, and the thread "Question about User loggins from an idiot are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Question about User loggins from an idiot
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hi there.
I really need some help. I'm trying to set up a pretty basic website but it needs to have a few pages thats can only be accessed by customers who register and login. It's just a basic user loggin system (no user specific content) but I'm totally clueless as to how to do this, ive tried google for help but i keep hearing different and conflicting answers. Some say PHP some say My SQL some say AJAX i've never used any of these and so im a little bit confussed. Can anybody make any suggestion as to where i should be looking or point me in the right direction. Thanks Sally xx |
|
|
|
#2
|
|||
|
|||
|
Re: Question about User loggins from an idiot
So you want each user to have an individual account?
If this is the case you will need to use PHP to interact with the database and MySQL to store the information As for doing this you need a couple of things. A register script, A user area so they can change things like their e-mail address, A login script Pages with user authentication. The last one could be a simple is-logged-in function which checks for an active session. There are lots of systems around which will do this for free, if you google user authentician script you should find quite a few. I recommend you check out codewalkers for a tutorial. (http://codewalkers.com/tutorials/82/1.html) This will take you through the concepts and get you going. |
|
#3
|
|||
|
|||
|
Re: Question about User loggins from an idiot
Thanks for your pointers. I will go through the tutorials and hopefully gain a better understanding of the concepts.
Would you say its a pretty easy thing to set up. Creating user logins, to access restricted webpages sounds pretty basic, but is the reality somewhat different? Also do you know of any good books that have walkthrough guides. Thanks for your help Love Sally xx |
|
#4
|
|||
|
|||
|
Re: Question about User loggins from an idiot
if you go to this link http://www.intranetjournal.com/php-cms/ and check out Part 5 there is some pretty good stuff on security.
Cheers, Gareth |
|
#5
|
||||
|
||||
|
Re: Question about User loggins from an idiot
Quote:
Anyway, to this day I remember a line from one of his routines. He was Spanish, so you have to imagine this with a deep accent: Quote:
I've tried copying/pasting some php scripts, and really, except for helpful snippets, I spend so much time on them I might as well have written them from scratch. My suggestion, if you want to do this, is to learn enough PHP to at least have a solid understanding of security. My first text was "PHP and MYSQL for Dynamic Web Sites" by Larry Ullman, which ends with construction of a membership capability. I'd suggest working through his book as one good approach. It's how I started and I was very happy with it. The one weakness is his introduction to pure mysql, which can be supplemented either from internet materials (free but time-consuming) or a second text (faster but $$). Actually you could buy a used mysql text for earlier versions quite cheap -- the code you learn should work pretty much 100%. (For php, on the other hand, you really need to learn the version you will be using.) I'm getting some proficiency at it and I'm actually writing a membership program right now. It's fairly challenging for me even after having done a practice set of programs, but when I'm done, I'll know every nuance of my system and be able to improve it as I continue to learn. Hope this was helpful. One other thing -- for me, learning php/mysql has been just plain fun. Wait until you find out you can generate .jpg's and .png's with php -- I have to stop myself from wasting time drawing fractals! (With the new gd library, you could theoretically paint a pretty good Mona Lisa using php!) |
|
#6
|
|||
|
|||
|
Re: Question about User loggins from an idiot
another more basic method (if u host on apache) is look up .htaccess security or go here http://www.javascriptkit.com/howto/htaccess3.shtml
|
|
#7
|
|||
|
|||
|
Re: Question about User loggins from an idiot
http://www.phpfreaks.com there are two seperate articles in the "tutorials" section, there extremely good and have forums to back them up, this is where i figured it out from.
|
![]() |
| Tags |
| user logins |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Idiot question about documents | kingwilliam | Starting Out | 2 | May 23rd, 2008 16:10 |
| Please help a javascript idiot | newby229 | JavaScript Forum | 4 | Jun 18th, 2007 21:08 |
| user login security question | tnikolov | Starting Out | 5 | May 7th, 2007 17:46 |
| Poll: Is Moojoo an Idiot? | moojoo | Webforumz Cafe | 44 | Jan 4th, 2007 20:33 |