How to make PHP generate Chunked response

A PHP response will always be chunked if you don’t specify a content-length header, and a flush occurs. (which will happen automatically after x bytes, just don’t know exactly how much).

This is a weird thing to care about. Is this some kind of academic/learning exercise or is there a real world problem you’re trying to solve?

Leave a Comment