| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Nov 2007
Posts: 428
![]() ![]() ![]() ![]() | PHP login script? I hope you know what im talking about, kinda new to php. But can anyone help me out with having members log into and out of my site. I know how to get people to register for my site and have their account details stored into my mysql database, but when it comes to then logging in and everything it really confuses me. A tutorial anywhere or some personal help would be great.
__________________ This used to be my signature. Now it still is. |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Mar 2005 Location: WP, CO
Posts: 220
![]() ![]() | See if this helps you out at all: http://www.evolt.org/article/PHP_Log...384/index.html
__________________ The Mountain Dew Knight does the Dew. All day long. |
| |
| | #3 (permalink) |
| DNOA Certified Seller ![]() Join Date: Apr 2005 Location: Arizona
Posts: 3,680
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | That's exactly the one I'd recommend. Very straight forward.
__________________ Nombrex.com |
| |
| | THREAD STARTER #4 (permalink) |
| NamePros Regular Join Date: Nov 2007
Posts: 428
![]() ![]() ![]() ![]() | I don't know what I'm doing wrong. I downloaded all the files, and filled in constants.php. I uploaded it all and I keep getting errors like this Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /include/constants.php:1) in /include/session.php on line 46 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /include/constants.php:1) in /include/session.php on line 46 Warning: Cannot modify header information - headers already sent by (output started at /include/constants.php:1) in /admin/admin.php on line 85
__________________ This used to be my signature. Now it still is. |
| |
| | #5 (permalink) |
| NamePros Regular Join Date: Jul 2004 Location: Seattle, Wa
Posts: 596
![]() ![]() ![]() | Although I haven't taken a look at the code, you most likely have already written something to the browser before you are initializing the cookies. Go to line 1 of constants.php. It's most likely that there is something written, (a comment, some html, the letter 'r') and it needs to be deleted for the script to work. |
| |
| | #6 (permalink) |
| DNOA Certified Seller ![]() Join Date: Apr 2005 Location: Arizona
Posts: 3,680
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Look for whitespace too. Try to copy and paste the beginning part of any errors you ever receive while programming into google and you'll learn a lot. Another big part of debugging is turning error reporting on. PHP Code:
__________________ Nombrex.com |
| |
| | #7 (permalink) | ||||
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | turnkey: http://www.phpdeadlock.org/
| ||||
| |