RE: output buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I figured it out but not sure why.

On the dev server the script ran with no errors
On the live server the script created the header already sent error.

In the code I did not execute ob_start() at the top of the script.
Once I executed ob_start at the top of the script on the live server it worked with no header already sent error.

I cannot see why on the dev server it works with the ob_start() command in inside the script while the live server had an error when it was in the same place in the script.

-----Original Message-----
From: Alexey Bovanenko [mailto:a.bovanenko@xxxxxxxxx] 
Sent: Tuesday, December 29, 2009 1:38 PM
To: Marc Fromm
Subject: Re:  output buffer

Hi.

There're some other code that is sent to client. You must send cookie
first, at header, then the other data.

Please send code to view your case.

With regards,
Alexey

On Wed, Dec 30, 2009 at 12:09 AM, Marc Fromm <Marc.Fromm@xxxxxxx> wrote:
> I am receiving the "Cannot send session cookie - headers already sent" message even though I am using ob_start() at the top of my script.
> The php.ini file has output_buffering set to 4096 4096.
> My server is running Red Hat Enterprise Linux 5.2
> I am using PHP 5.1.6
>
> Is there some other setting I need to adjust to be able to start a session within the php script?
>
> Thanks
>
> Marc
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux