Old 03-11-2005   #1 (permalink)
Registered User
 
Join Date: Mar 2005
Posts: 2

Question Plz help w/ PHP-MySQL membership script Tutorial

I completed the tutorial for the PHP - MySQL membership script and seem to have run into a snag. Im sure it's something simple but I can't put my finger on it...

http://www.witchyworld.com/user/register.php

I edited the urls as instructed .. registered, and received the activation emails just fine. When I click on the login in here link Im getting an error ...


Warning: Cannot modify header information - headers already sent by (output started at /home/wworld/public_html/user/config.php:1) in /home/wworld/public_html/user/login.php on line 27


Oasis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-11-2005   #2 (permalink)
Bub
n00b
 
Bub's Avatar
 
Join Date: Feb 2004
Location: South Carolina
Posts: 860

Send a message via AIM to Bub
scrowler... where are ya? He's the man when it comes to this sort of question.
__________________
Bub is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-11-2005   #3 (permalink)
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
Your problem,i met it somewhere,you could see it when you use Cookies or Session rite?Because the header() must ouput first,Is there any header output in your codes that you ouput it before sth(like cookie),so recheck both config.php and login.php.
Anywait,your codes here will make everything clearer than just guess..
__________________
ParaSnake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-11-2005   #4 (permalink)
Moderator
 
Join Date: Jul 2004
Location: Quebec City, Canada
Posts: 50

ParaSnake is right, any header(); call must come before anything is sent to the browser. From what I can see, there is an unwanted space before your first <?php tag in config.php. Remove it
The Eagle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-11-2005   #5 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
yeah, there can't be any html, or output from PHP before a header() function, check your code, you probably just added some html in the wrong place (i.e. add html after php instead of before, or in the PHP)
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-11-2005   #6 (permalink)
Red Dawn
 
BlodoPKNZ's Avatar
 
Join Date: May 2004
Location: Eastern Europe
Posts: 302

Or use output buffering if you HAVE to have code before changing headers. Thats not the usual recommenede way tho, cause there are other more effective ways of redirecting etc.
__________________
BlodoPKNZ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-12-2005   #7 (permalink)
Registered User
 
Join Date: Mar 2005
Posts: 2

Thank you all ... it working now =)
Oasis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-12-2005   #8 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
have fun
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 05-18-2005   #9 (permalink)
stingerblue
Guest
 
Posts: n/a

Quote:
Originally Posted by scrowler
yeah, there can't be any html, or output from PHP before a header() function, check your code, you probably just added some html in the wrong place (i.e. add html after php instead of before, or in the PHP)
I had the same problem, and I tried the *.zip of files which can be downloaded, and that also has the same error!"

Also the search engine needs some work on here, I didnt find this till I posted a thread on the same subject (block simliar threads appeared)

was just a space after the ?> in the config.php file :-/

Last edited by stingerblue; 05-19-2005 at 08:12 PM.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-01-2005   #10 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
for future reference on membership script problems, please check the faq before posting. thanks.
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

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
Forum Jump


All times are GMT +1. The time now is 05:08 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT