i want to add Transfer-Encoding: chunked
header to the file that i\'m outputing (its just generated plain text), but when i add:
header(\"Transf
For me when I was trying something with "Transfer-Encoding: chunked" I had to use this code to make it work:
This code will still have the "Transfer-Encoding: chunked" header.
It automatically sets the Transfer-Encoding heading when you use flush but when it set it manually it fails, so to prevent any problems try to remove it. Also make sure that you remove the heading on the line before you do your first flush to prevent errors.