I would like to read a ms word file and store text only (ex meta data and formatting codes) into a var, and then display some or all of the text.
I am familar with doing this for text files eg.
Code: Select all
$myfile = "C:\\mydocument.txt";
$myopenfile = fopen($myfile, "rb");
$contents = fread($myopenfile, filesize($myfile));
fclose ($myopenfile);
echo $contents;Any help greatly appreciated, Thank you.
- Andrew