I have a script which outputs mysql cell data. The \"content\" cell contains text output, which is of varied length.
When the contents of the \"content\" cell are small
PHP will buffer output if you want it to. You can control this programmatically with ob_start()
, etc. However, there is a further option to set output buffering on in php.ini.
Setting output_buffering=on
enables it, while setting output_buffering=4096
will set a limit to the buffer size. phpinfo()
should tell you if this is enabled, and what the buffer size is.
The PHP reference is here
The "headers already send" warning means, you modify the http headers somewhere in your code after you send output to the Client(i.e. with echo
, whitespaces, etc..).
This warning itself has nothing to do with the content length.
There are more methods, wich modify the headers: