
May 6th, 2008, 05:02 AM
|
|
Registered User
|
|
Join Date: May 2008
Posts: 1
Time spent in forums: 1 h 24 m 33 sec
Reputation Power: 0
|
|
|
Read the MSword file form PHP and display in browser
Hai,
I would like to read the MSword file(.doc) and display on the browser.
I used the following lines to read
Quote: $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
Quote: | $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
|