|
hi guys!
here is my problem...
I have to append a string "See the solution file" in at the end of almost 3000 MS word (.doc) files.
I am using this
$file="filename.doc";
$fp=fopen($file, "a+");
$cmnt="See the solution file";
fwrite($fp, $cmnt);
fclose($fp);
it works fine if i use
$file="filename.txt"; or $fp=fopen($file,"w+");
txt file(need to update doc) (writing whereas i need to append data)
what to do?
thanks in advance
|