Closed pomborenato closed 1 year ago
I had same issue on FreeBSD+Apache. Just need to clear output buffer before sending the header:
// clear output buffer ob_end_clean();
header("Content-Type"........ ..... $writer->writeToStdOut(); .....
If you can provide a short php program which reproduces the problem, then we can reproduce it and fix it. Otherwise there isn't enough information to reproduce and fix the reported issue.
i'm using in IIS with PHP Version 5.2.8 and file generated not open in correct format.