I'm working on someone elses code and there is ~800 lines of markup mixed in with tags. I'm trying to apply some templates to these pages and I thought I would start by capturing all the output in an output buffer, return that as a variable and then sort things out piece by piece.
The problem is that at the end of the buffer when I return the output as a string it is truncated at 1024 characters. Why would this be?
Normally, it doesn't do that, which could mean:
ob_start($callback)
with a specific callback active messing things up (what does ob_get_level
say?).ob_get_clean()
Those 3 are about it, without code there isn't much else to say.