I am having a few problems with the php com command.

All apears to go well but win word never opens. And i cant find the file anywhere. I was hoping that someone here may know what is going on with this.

<?php

$word=new COM("word.application") or die("Cannot start word for you");
print "Loaded word version ($word->Version)n";
$word->visible =1 ;
$word->Documents->Add();
$word->Selection->Typetext("This is a test.....");
$word->Documents[1]->SaveAs("just_a_test.doc");
$word->Quit();

?>


Extra info:
PHP4, Apache, Win2k profecional

Thanks for the help
kill-9