I need to modify the downloaded file .docor .docxin php. I googled, but I only found how to read it, but not the way it is. I want the word file to be as it is, and put the text at the bottom of this MS Word file. How is this possible, does anyone know, please respond.
Thank,
I used the following code: -
$w='Test';
$fp = fopen('c:/text.doc', 'a+');
fwrite($fp, $w);
fclose($fp);
It adds a line but does not appear in the word document. When I changed the doc file extension to xml , then it shows the line at the end. why it should not appear in the doc file.
Thank,
source
share