[RESOLVED] Read .doc file
Hi
im having problem in reading the .doc file in php my code is
Code:
<?php
$fp = fopen("111.doc","r");
$contents = fread($fp,filesize("111.doc"));
echo $contents;
?>
the output contain some characters at the begining and end of the file. Here is the output.
Code:
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Word file starts from here. And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, And this is more text, End of the word file ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ø ��ì ��í
Please help me to read the contents only and how to get rid of these other characters :cry: