znotte
asked on
Error when I open a word document at php.
Hello everybody,
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?
Thanks!
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?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi rdivilbiss,
I tried header( "Content-Disposition: attachment; filename=file.doc"); and the error is sitll there
I tried header( "Content-Disposition: attachment; filename=file.doc"); and the error is sitll there
Nothing is being written to the client prior?
ASKER
I'll try this than I'll get back to you!
Thank you!