I have a ms word file with few texts, is there any way to add few texts in it using php code.
for instance, I have a word file and it has text like 'My name is.....', i would like to add one name in the dotted place using php code.

I have a ms word file with few texts, is there any way to add few texts in it using php code.
for instance, I have a word file and it has text like 'My name is.....', i would like to add one name in the dotted place using php code.

You would need to use Libraries like PHPWORD.It provides a set of classes to write to and read from different document file formats.
You can also use phpLiveDocx which is a Zend Framework component and can read and write DOC and DOCX files in PHP on Linux, Windows and Mac.
A sample code to do this with PHP COM
<?php
// Create COM instance to word
function clsMSWord($Visible = false)
{
$this->handle = new COM("word.application") or die("Unable to instanciate Word");
$this->handle->Visible = $Visible;
}
function WriteHyperlink($Bookmark,$Path,$Text)
{
$objBookmark = $this->handle->ActiveDocument->Bookmarks($Bookmark);
$range = $objBookmark->Range;
$objHyperlink = $this->handle->ActiveDocument->Hyperlinks;
$objHyperlink->add($range,$Path,"","",$Text);
}