Having a few problems with output buffering. Mainly, I\'m trying to run output buffering with the ob_gzhandler callback, but it keeps telling me its using an unsupported com
You have output buffering enabled by default (see the docs) - that basically means that every PHP script starts with ob_start().
If you want to disable the default OB for all PHP scripts, in your php.ini, set output_buffering = Off
.
If you only want to disable the default OB for this specific script, use the while
loop - it's quite correct.
As for the ob_clean - are you sure you want to delete the output that's in your buffer? IMO it's not really necessary, unless you are seeing significant slow page loads. Don't worry about optimizing that (at least not now).