NameSilo

PHP login script?

Spaceship Spaceship
Watch

unclewalter

Established Member
Impact
6
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. :hehe:
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
1
•••
That's exactly the one I'd recommend. Very straight forward.
 
0
•••
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
 
0
•••
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.
 
0
•••
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:
<?php error_reporting(E_ALL);?>
 
0
•••
turnkey: http://www.phpdeadlock.org/

unclewalter said:
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. :hehe:
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back