Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi All,

I'm writing an web application with PHP/MySQL. I used PHP5 but believed  
to use code that would work also under PHP4. However when I tried my  
application under PHP4 I got the warning that the headers are already  
sent and my session did not work. I do understand that I have to send  
the headers before anything else. But does anyone know what kind of  
difference between PHP4 and PHP5 makes it possible for sessions to work  
under PHP5 and not under PHP4. Or does anyone know a link to this  

Thanks in advance,

Re: sessions

Erik wrote:

Quoted text here. Click to load it

As always after finally asking the question in a newsgroup you'll find  
the answer. The difference was not between PHP4 and PHP5 but a setting  
in the ini file:
    output_buffering = Off
    output_buffering = 4096


Re: sessions

Was output buffering Off? in PHP 5? Sorry

Site Timeline