I am trying to generate an Excel file (xls), using PHPExcel, but have it saved on the server instead of having it prompted for download on my desktop!
How can I instruct PHPExcel to save my file instead of having the dialog presented by the browser?
Ok, I get it:
I have to use:
$objWriter->save('nameoffile.xls');
... and not to define headers, because header "telling" to browser to save file.
Thank you anyway!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With