Sorry for not answering to this post anymore. Option number one as suggested bij Shahriar worked for me. I disabled output buffering and now it’s gives me the option to save the file or open it right away.
Thank you very much!