I would like to read the MSword file(.doc) and display on the browser.
I used the following lines to read
$filename = "c:\\sample.doc";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
but it showed me in the some other format.
Afterwards i google it,i found that i have to use
$word = new COM("word.application");
I couldn't found not good examples for reading the msword file by using the COM.
Can any one help me to fix this issues.
Thanks