I'm having trouble using "php://output" as save location for excel writer (I tried Excel5 and Excel2007).
The problem is that files saved when outputed to this special output are not readable. When I use a location on file system xls or xlsx file are writen correctly.
I used vbindiff to find difference between file outputed to php://output and then saved through browser (FF3.6.13 and Chromium browser) and file written directly to, say, /usr/tmp.
I found that there is one byte of difference at the beggining of the file saved through browser in both cases: hex 0A.
I have read the FAQ and the documentation and took care not to output anything else to buffer before or after calling writer's save method.
Where is the catch? What am I missing?
My dev machine (web server) is as follows:
Ubuntu 10.10, PHPversion 5.3.3-1ubuntu9.3, running on lighttpd.