Login   Register  
PHP Classes
elePHPant
Icontem

headers already sent

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Secure Session  >  All threads  >  headers already sent  >  (Un) Subscribe thread alerts  
Subject:headers already sent
Summary:understanding the resending of headers
Messages:2
Author:Hiram Gibbard
Date:2006-09-23 13:38:47
Update:2008-06-20 01:31:37
 

  1. headers already sent   Reply  
Picture of Hiram Gibbard
Hiram Gibbard
2006-09-23 13:38:47
Hi,

Currently I have a layout class that I call at the top of each of my pages. This class calls the session_start() function first and calls a series of methods that display my overall template. While incorporating your secure session class (which I like very much. Thanks!) I generate the "headers already sent error" when calling the $this->_RegenerateId() method. I am aware that theses errors are due to my programming techniques. So please don't take this as a negative accusation.


I am more or less looking for help in explaining when, where, and how to properly recall functions that call/recall header information. I know you are not supposed to output data prior to specific functions (i.e session_start, header(), and in this case the $this->_RegenerateId()), But sometimes its what I want to do, or at least accomplish. Any help would be great.

Thanks.
Intro php devloper

  2. Re: headers already sent   Reply  
Picture of Neal Breeding
Neal Breeding
2008-06-20 01:31:37 - In reply to message 1 from Hiram Gibbard
I've run into this also... and consider myself a but of a novice in some areas, this being one... did you ever find a solution?