![]() |
php registration
hi i'm beginner with php but now i have to learn how to make a website where people will be able to register and to have an access to some pages only when they are logged in , i know that i ought to use 'session', but i have no idea how to do it.
can u please help me with this? thanks or can u send me some sources ? thank u vey much :) |
http://us2.php.net/manual/en/ref.session.php
http://www.google.com/search?q=php+%...en-US:official Those should help you get started :) if you have anything specific just ask and we can help you out. besides sessions you are going to need a way to store user info like username and password, I am guess you will probably want to use a database of some sort for this, That way you verify the users when they login via the db. but then the session links I gave above should help with the managing the users sessions. |
yea thanks , i have once read this text but i would be happy to find some script where it's used , some functionaly example, don't u know about something ? thx
|
Almost any non-trivial book or tutorial. For instance, "PHP and MySQL", Hugh E. Williams & David Lane, O'Reilly. This book develops, as an example, a wine store database. PHP, MySQL, regular expressions, security, sessions (including authentication), PDF reports, and many other topics are covered. It discusses setting things up on multiple platforms, as well. This is the kind of book you can work through from beginning to end, or skip around in as a (less than comprehensive) reference. If you like, you can install the examples and have code to look at and play with. There is no substitute for material at your eyeballs, be it book or online material. Always have handy the PHP manual -- it's very good.
|
| All times are GMT -5. The time now is 12:58 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC