LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 525 users online 165555 members 1735 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Video | Dictionary | News | FAQ
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
3 online / 49 MPM
Independence Day (USA)
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

Php help please.
Replies: 9Last Post Oct. 30, 2007 7:47am by pleaseremove
Single page for this topic Email Print Favorite
( Seanee )


Enlightened One

Patron
Reply
WTF is this all about?

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/sean/public_html/index.php:11) in /home/sean/public_html/users/include/session.php on line 46


10:27 am on Oct. 29, 2007 | Joined Sep. 2006 | 397 Days Active
Join to learn more about Seanee England, United Kingdom | Straight Male | 8684 Posts | 15842 Points
Post from this position was omitted due to content violations
Post from this position was omitted due to content violations
derailedjet


Lovin' Life

Patron
Support Leader
Tech Support Leader
Reply
I'm not terribly familiar with the inner workings of a PHP server, however, this is only a warning and not an error. It sounds like it was something that just came up because some built in thing called the session cache limiter could not start up. I would try refreshing the page a little while later and trying again.

-------
© 2008 derailedjet. All Rights Reserved.
I'll give you 1,500 points for clickingthis link.

10:47 am on Oct. 29, 2007 | Joined Dec. 2005 | 694 Days Active
Join to learn more about derailedjet California, United States | Straight Male | 3828 Posts | 27546 Points
OnOne353

Executive

Patron
Reply
Remember that header() must be called before any actual output is sent,
either by normal HTML tags, blank lines in a file, or from PHP. It is a very
common error to read code with include(), or require(), functions, or
another file access function, and have spaces or empty lines that are output
before header() is called. The same problem exists when using a single
PHP/HTML file.

Let me know if that helps. And, PM me if you need anymore.

Post edited at 10:50 am on Oct. 29, 2007 by OnOne353

-------
[Insert witty, intelligent comment here]


10:48 am on Oct. 29, 2007 | Joined Aug. 2007 | 93 Days Active
Join to learn more about OnOne353 England, United Kingdom | Straight Male | 3743 Posts | 3220 Points
The Dalai Lama

Soothsayer

Patron
Reply
Just means that you placed that header:location thing too far into the script.  The website had already sent to the information to the browser so it's not able to do it again.

-------
READ THIS
MP3 UPLOADZZZ

1:13 pm on Oct. 29, 2007 | Joined Oct. 2006 | 464 Days Active
Join to learn more about The Dalai Lama Ontario, Canada | Straight Male | 8780 Posts | 12238 Points
allsmiles


Visionary

Ad Free
Reply
Just make session_start() the first command in your script. It's pointless having it anywhere else, really, and doing so would resolve thwe problem.

-------
When they leave me, they're all smiles.
When they leave you, they're in tears.

1:40 pm on Oct. 29, 2007 | Joined Aug. 2007 | 261 Days Active
Join to learn more about allsmiles England, United Kingdom | Male | 5041 Posts | 9713 Points
WigAOK9


Expired.

Patron
Support Leader
Tech Support Leader
Reply
The last few replies are correct, it seems. You need to move the session coding back up to the top or you are trying to send the same session code twice and need to stop the second copy.

-------
Wool, it comes from cows.
PS. OMG SO FUNNY!

2:36 pm on Oct. 29, 2007 | Joined Nov. 2001 | 1433 Days Active
Join to learn more about WigAOK9 California, United States | Male | 9304 Posts | 44196 Points
OnOne353

Executive

Patron
Reply
I told him to try moving the session_start(); just under <php? but it wasn't successful.

-------
[Insert witty, intelligent comment here]

3:26 pm on Oct. 29, 2007 | Joined Aug. 2007 | 93 Days Active
Join to learn more about OnOne353 England, United Kingdom | Straight Male | 3743 Posts | 3220 Points
pleaseremove


Dairy Product Addict

Patron
Tech Support Leader
Reply
Can you show us a copy of all of the file you are working on. Or at least all the lines up until where you start the session.

-------
Anyone who isn't confused really doesn't understand the situation
http://craigk.org/pictures/
Can you work out the code?

7:47 am on Oct. 30, 2007 | Joined Feb. 2005 | 1054 Days Active
Join to learn more about pleaseremove England, United Kingdom | Straight Male | 5375 Posts | 29330 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic