[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 03-10-2008, 06:12 PM   #1 (permalink)
NamePros Regular
 
unclewalter's Avatar
 
Join Date: Nov 2007
Posts: 424
168.20 NP$ (Donate)

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.
__________________
:hearts: :love:
Buy some domains
unclewalter is offline  
Old 03-10-2008, 06:51 PM   #2 (permalink)
NamePros Regular
 
DewKnight's Avatar
 
Join Date: Mar 2005
Location: WP, CO
Posts: 220
43.40 NP$ (Donate)

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, 07:01 PM   #3 (permalink)
DNOA Certified Seller
 
RegFee's Avatar
 
Join Date: Apr 2005
Location: Arizona
Posts: 3,644
285.00 NP$ (Donate)

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.
__________________

RegFee.info - Available Domain Names - NEW DESIGN!
DNWholesaler.com - Domains for Sale

<--- baby Rogan says: sorry for spelling/punctuation mistakes, daddy's feeding me
RegFee is offline  
Old 03-12-2008, 03:39 PM   #4 (permalink)
NamePros Regular
 
unclewalter's Avatar
 
Join Date: Nov 2007
Posts: 424
168.20 NP$ (Donate)

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
__________________
:hearts: :love:
Buy some domains
unclewalter is offline  
Old 03-12-2008, 07:37 PM   #5 (permalink)
NamePros Regular
 
Palyriot's Avatar
 
Join Date: Jul 2004
Location: Seattle, Wa
Posts: 596
76.25 NP$ (Donate)

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, 07:51 PM   #6 (permalink)
DNOA Certified Seller
 
RegFee's Avatar
 
Join Date: Apr 2005
Location: Arizona
Posts: 3,644
285.00 NP$ (Donate)

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);?>
__________________

RegFee.info - Available Domain Names - NEW DESIGN!
DNWholesaler.com - Domains for Sale

<--- baby Rogan says: sorry for spelling/punctuation mistakes, daddy's feeding me
RegFee is offline  
Old 03-12-2008, 08:02 PM   #7 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

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/

Quote:
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.
weblord is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 02:52 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85