Thread:Project:Support desk/Embed document.php not working correctly HELP

Hi guys, hope you are well.

I am running out of ideas on how to fix this issue so I would be extremely grateful if you could help me.

Mediawiki is installed using the below setup:

MediaWiki 1.17.0 PHP 5.3.8 (apache2handler) MySQL 5.5.16 Embed Document (Version 0.13) Allows embedding *.pdf, *.doc and *.wav files on a wiki page by Sloshe and DrTrigon

Problem is a .doc file should be displaying inside the wiki page but rather than displaying the file, it prompts you to download it on entering the page. The file in question is uploaded into the wiki.

The mediawiki (wiki) is installed inside htdocs folder and the embed_document.php inside the extensions folder, which is then called by the LocalSettings.php file.

Code inside the LocalSettings.php:

require_once("$IP/extensions/embed_document.php");

Code inside wiki media page:

/wiki/docs/Test.doc

Any suggestions? I just want the functionality, I dont mind if I need to use a different extension.

Many thanks.