Posted by Erik on 11/22/05 18:26
Erik wrote:
> 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
> information?
>
> Thanks in advance,
> Erik
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
versus
output_buffering = 4096
Erik
Navigation:
[Reply to this message]
|