Jump to content

header msword help


jake2891

Recommended Posts

Hey guys, Have the following code below which used to work in ie and firefox but now only works in firefox. its very strange. basically im executing the below code in a popup that open up a file in word. in ie its just opening the popup then doing nothing. and in firefox its opening the word document. any help please ?? :)

 

header("Content-Type: application/msword");

header("Content-Disposition: attachment; filename=test.doc" );

print file_get_contents($path);

exit;

Link to comment
https://forums.phpfreaks.com/topic/173098-header-msword-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.