Location: PHPKode > scripts > PHP MS Word > php-ms-word/index.php
<?php
require_once("clsWord.php");

   $input = "C:\\Doc1.doc";
   $output = "C:\\Doc1.doc";

   $Word = new clsMSWord;
   $Word->Open($input);
  $Word->WriteText("This is a test ");
   $Word->WriteBookmarkText("test","this is bookmark text");
   $Word->SaveAs($output);
   $Word->Quit();
echo 'The data is inserted successfully !';
?>
Return current item: PHP MS Word