how can i strip formatting from word document using php

Posted by shazia on Stack Overflow See other posts from Stack Overflow or by shazia
Published on 2010-12-24T05:46:38Z Indexed on 2010/12/24 5:54 UTC
Read the original article Hit count: 204

Filed under:

I want to display a word file and then extract the content and display it in a separate textarea. i want to do away with the formatting as well.

this is what i get when i get the read the text file using php

??????ÿÿÿÿ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Running Head: INTERNATIONAL BUSINESS International Business [Name of the writer] [Name of the institution] International Business Question 1 Increasing returns to scale (or economies of scale) in production is an indisputable phenomenon characterizing real world production, and, as such, they have long been recognized as a principal source of economic prosperity. Nonetheless, they have never played a major role in

this is the code

$fh = fopen($newname, 'r'); 
$contents => fread($fh, filesize($newname));
fclose($fh); unlink($newname); echo
"<br/>"; echo $contents;

how can i get rid of all these charecters.

Thanks

© Stack Overflow or respective owner

Related posts about php