First of all, like BlaM mentioned in his comment, if PHP's OutputBuffering is enabled, this will not work, so it would be useful to know your phpinfo ().
Next, try, if it works with a large file that is stored on the yor web server, output it in the readin file. And with that, check if you are sending the correct headers. Tips on how to read the file () and send the correct headers, indicated here: https://stackoverflow.com/a/4646268
And while you're on it, call ob_end_flush () or ob_end_clean () at the top of your script.
ThE _-_ BliZZarD
source share