Hi
im having problem in reading the .doc file in php my code is
the output contain some characters at the begining and end of the file. Here is the output.Code:<?php $fp = fopen("111.doc","r"); $contents = fread($fp,filesize("111.doc")); echo $contents; ?>
Please help me to read the contents only and how to get rid of these other charactersCode:���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������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 ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Ø ��ì ��í![]()


Reply With Quote
