You can use the COM class as follows
$word = new COM("word.application") or die("Unable to start Ms Word");
$word->Visible = 0;
//$contents will be the string you want to convert to a Word document
$word->Documents->Add("$contents");
$word->Documents[1]->SaveAs("filename.doc");
$word->Quit();
$word->Release();
$word = null;
Richie.
geocities.com/akindele/