[eluser]hrg.vincent[/eluser]
[quote author="numberduck" date="1384943687"]Those headers look OK, were there any warnings?
My guess is that you already had some output sent to the browser before the headers were set. You must not write any output, even white space, before setting the headers.[/quote]
no any warnings at all, just display a blank page.
if i change to the code below, it show also blank page, but at least it save to root folder.
But now my problem is, I need it to pop out and ask where to save.
Code:
// change the code to
$objWriter->save("test.xls");
// instead of
$objWriter->save('php://output');
So, anyone can help?