Old 01-12-2006   #1 (permalink)
Joe
Registered User
 
Joe's Avatar
 
Join Date: May 2004
Location: Warrington, UK
Posts: 187

Little PHP help..

Hey guys,

Long time no post, some of you might not remember me

Helping a friend make a site which requires a membership area but I'm hitting some errors.

Basically when I go to Login.php I get this.

Quote:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/joebrown/public_html/ExecutiveAirways/login.php:5) in /home/joebrown/public_html/ExecutiveAirways/login.php on line 107

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/joebrown/public_html/ExecutiveAirways/login.php:5) in /home/joebrown/public_html/ExecutiveAirways/login.php on line 107
When I try to get to members.php I then get this.

Quote:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/joebrown/public_html/ExecutiveAirways/login.php:5) in /home/joebrown/public_html/ExecutiveAirways/login.php on line 107

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/joebrown/public_html/ExecutiveAirways/login.php:5) in /home/joebrown/public_html/ExecutiveAirways/login.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/joebrown/public_html/ExecutiveAirways/login.php:5) in /home/joebrown/public_html/ExecutiveAirways/login.php on line 132
Can any of you guys help me?

for anyone wanting to look at all the source you can get to the site here.

http://www.joebrownleephotography.co...ways/login.php

Cheers,
Joe.
__________________
I prefer pizza over sex, only because I can get pizza.

Last edited by Joe; 01-12-2006 at 09:17 PM.
Joe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-12-2006   #2 (permalink)
Registered User
 
Join Date: Apr 2005
Location: antwerp, belgium
Posts: 51

pff could be a number of things, but most common is that you already have some phpcode which has been executed before you start the session.

If that's the case just put the startsession statement on top and It should work, for the login atleast
__________________
sneeuwbal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-12-2006   #3 (permalink)
Joe
Registered User
 
Joe's Avatar
 
Join Date: May 2004
Location: Warrington, UK
Posts: 187

Hey,

I just tried to add the

Quote:
<?php
session_start();
above all of the code and when I tried to get to the page I got errors for having all the HTML in it.

Any more ideas?

Joe.
__________________
I prefer pizza over sex, only because I can get pizza.
Joe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-13-2006   #4 (permalink)
Registered User
 
Join Date: Apr 2005
Location: antwerp, belgium
Posts: 51

not really, maybe if i could see the full sourcecode, I could find the problem
__________________
sneeuwbal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-13-2006   #5 (permalink)
Joe
Registered User
 
Joe's Avatar
 
Join Date: May 2004
Location: Warrington, UK
Posts: 187

I've uploaded the source code of login.php and member.php here.

http://www.joebrownleephotography.co...ways/login.txt
http://www.joebrownleephotography.co...ays/member.txt

Joe.
__________________
I prefer pizza over sex, only because I can get pizza.
Joe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-13-2006   #6 (permalink)
Registered User
 
Join Date: Apr 2005
Location: antwerp, belgium
Posts: 51

the problem in the login script is this line:
Quote:
header("Location: member.php");
a header is already been created by the strartsession command
best way to resolve this would be by adding a part of html-code (a redirect to the page you want)
this should solve the problem.

Will have a look at the members script later
__________________
sneeuwbal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-15-2006   #7 (permalink)
Joe
Registered User
 
Joe's Avatar
 
Join Date: May 2004
Location: Warrington, UK
Posts: 187

Well I've been trying for days now and I still cant get anything, anyone got any ideas for me? or kind enough to try and fix it?

Joe.
__________________
I prefer pizza over sex, only because I can get pizza.
Joe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-16-2006   #8 (permalink)
Enigmatic
 
Join Date: Jan 2006
Location: I live in the lower south west,Western Australia
Posts: 256

I havent been on for long what is it yu want help with sounds most need helping hand ....enigmatic
enigmatic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-16-2006   #9 (permalink)
Joe
Registered User
 
Joe's Avatar
 
Join Date: May 2004
Location: Warrington, UK
Posts: 187

Hey,

If you click on the links in my first post you'll see I end up with several errors on login.php and member.php that I can't resolve, I was wondering/hopeing that someone here could help me with it

Joe.
__________________
I prefer pizza over sex, only because I can get pizza.
Joe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-16-2006   #10 (permalink)
Eldar
 
Maryndor's Avatar
 
Join Date: Jan 2006
Location: Shiny Forest
Posts: 4

Send a message via ICQ to Maryndor
You could try to find different solution than: header("Location: member.php");
__________________
Eldars, im mellon!
Maryndor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-16-2006   #11 (permalink)
Joe
Registered User
 
Joe's Avatar
 
Join Date: May 2004
Location: Warrington, UK
Posts: 187

What could I change it too?

Joe.
__________________
I prefer pizza over sex, only because I can get pizza.
Joe 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Time sensitive passcodes in PHP thecubed HTML / PHP / ASP / JS 1 01-09-2006 02:25 AM
Pro's and Con's to Upgrading PHP pipersdragon HTML / PHP / ASP / JS 1 12-29-2005 11:43 PM
PHP Tutorial Trio! Man1c M0g Announcements 3 07-09-2005 09:15 AM
PHP template Help fewtion HTML / PHP / ASP / JS 8 02-26-2005 03:55 PM
Digital's Quick and Dirty Guide to PHP Order HTML / PHP / ASP / JS 15 05-05-2004 01:18 AM


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

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