NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PHP login script?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 03-10-2008, 07:12 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
unclewalter's Avatar
Join Date: Nov 2007
Posts: 428
unclewalter is just really niceunclewalter is just really niceunclewalter is just really niceunclewalter is just really nice
 



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.
unclewalter is offline  
Old 03-10-2008, 07:51 PM   #2 (permalink)
NamePros Regular
 
DewKnight's Avatar
Join Date: Mar 2005
Location: WP, CO
Posts: 220
DewKnight will become famous soon enoughDewKnight will become famous soon enough
 



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.
DewKnight is offline  
Old 03-10-2008, 08:01 PM   #3 (permalink)
DNOA Certified Seller
 
RegFee's Avatar
Join Date: Apr 2005
Location: Arizona
Posts: 3,680
RegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond repute
 


Third World Education Third World Education Save The Children Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health
That's exactly the one I'd recommend. Very straight forward.
__________________
Nombrex.com
RegFee is offline  
Old 03-12-2008, 04:39 PM THREAD STARTER               #4 (permalink)
NamePros Regular
 
unclewalter's Avatar
Join Date: Nov 2007
Posts: 428
unclewalter is just really niceunclewalter is just really niceunclewalter is just really niceunclewalter is just really nice
 



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.
unclewalter is offline  
Old 03-12-2008, 08:37 PM   #5 (permalink)
NamePros Regular
 
Palyriot's Avatar
Join Date: Jul 2004
Location: Seattle, Wa
Posts: 596
Palyriot is a jewel in the roughPalyriot is a jewel in the roughPalyriot is a jewel in the rough
 



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.
Palyriot is offline  
Old 03-12-2008, 08:51 PM   #6 (permalink)
DNOA Certified Seller
 
RegFee's Avatar
Join Date: Apr 2005
Location: Arizona
Posts: 3,680
RegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond reputeRegFee has a reputation beyond repute
 


Third World Education Third World Education Save The Children Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health Baby Health
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:
<?php error_reporting(E_ALL);?>
__________________
Nombrex.com
RegFee is offline  
Old 03-12-2008, 09:02 PM   #7 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
turnkey: http://www.phpdeadlock.org/

Originally Posted by unclewalter
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.
__________________
Nabaza.com - Amaia
weblord is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:13 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger