I have a little function, that creates .xls document(using PHPexcel) and then sends it to php://output. Then user download it. Everything works fine, except that safari on
You can use javascript code
This will open that xls source and file will be available for download