Question about User loggins from an idiot

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 22nd, 2006, 22:48
New Member
Join Date: Nov 2006
Location: Hull
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Question about User loggins from an idiot

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 23rd, 2006, 13:15
Junior Member
Join Date: Nov 2006
Location: London
Age: 22
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 23rd, 2006, 16:34
New Member
Join Date: Nov 2006
Location: Hull
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 24th, 2006, 11:56
Junior Member
Join Date: Oct 2006
Location: Uxbridge, West London
Age: 26
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Nov 27th, 2006, 10:58
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Question about User loggins from an idiot

Quote:
Originally Posted by Webstuck View Post
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
You're way too young to remember Senor Wences, who was a ventriloquist/comedian. His sense of humor was quite strange.

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:
Wences: Is difficult.
Johnny: Is easy.
Wences: Difficult.
Johnny: Easy.
Wences: Dee-fee-cult.
Johnny: Deefeecult for you. Easy for me.
For a skilled and experienced php programmer, this is cake. For someone who doesn't know any php, it may be possible to copy/paste a script, but you're asking for a nightmare. Learning trapeze without a net.

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!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Nov 27th, 2006, 14:05
Reputable Member
Join Date: Oct 2006
Location: UK
Age: 25
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Nov 27th, 2006, 22:29
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
user logins

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 02:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42