Error when I open a word document at php.
Posted on 2007-04-02
I'm having this following problem.
I have a button inside an ajax page in PHP code that opens a word document. When I use Firefox, this download works but when I use Internet Explorer it doesn't work and appears this message:
"Internet Explorer was not able to open this Internet site. The requested site is either unavaiable or cannto be found. Please try again later."
After all the queries at the page, I have this header:
header( "Content-type: application/ms-word" );
header( "Content-Disposition: attachment; filename=file.rtf");
Is there anyone that can help me?