Hi,
I seem to have trouble trying to get this to work. Here is my code:
<?php
$word = new COM("word.application") or die("Unable to instantiate Word");
echo "Loaded Word, version {$word->Version}\n";
$word->Visible = 1;
$template_file = "C:\Documents and Settings\user\Desktop\test.doc";
$word->Documents->Open($template_file);
$word->Quit();
$word = null;
?>
These are the errors I get:
Warning: main(): Unable to lookup Version: Call was rejected by callee. in C:\Apache\Apache2\htdocs\COMtest.php on line 12
Loaded Word, version
Warning: main(): Unable to lookup Visible: Call was rejected by callee. in C:\Apache\Apache2\htdocs\COMtest.php on line 14
Warning: (null)(): Unable to lookup Documents: Call was rejected by callee. in C:\Apache\Apache2\htdocs\COMtest.php on line 17
Warning: (null)(): Unable to lookup quit: Call was rejected by callee. in C:\Apache\Apache2\htdocs\COMtest.php on line 21
Some background info: I do have office 2000 pro installed on the server. My PHP version is 4.3.7
The php configuration for COM is:
com
Directive Local Value Master Value
com.allow_dcom Off Off
com.autoregister_casesensitive On On
com.autoregister_typelib Off Off
com.autoregister_verbose Off Off
com.typelib_file no value no value
Any help is GREATLY appreciated.

I seem to have trouble trying to get this to work. Here is my code:
<?php
$word = new COM("word.application") or die("Unable to instantiate Word");
echo "Loaded Word, version {$word->Version}\n";
$word->Visible = 1;
$template_file = "C:\Documents and Settings\user\Desktop\test.doc";
$word->Documents->Open($template_file);
$word->Quit();
$word = null;
?>
These are the errors I get:
Warning: main(): Unable to lookup Version: Call was rejected by callee. in C:\Apache\Apache2\htdocs\COMtest.php on line 12
Loaded Word, version
Warning: main(): Unable to lookup Visible: Call was rejected by callee. in C:\Apache\Apache2\htdocs\COMtest.php on line 14
Warning: (null)(): Unable to lookup Documents: Call was rejected by callee. in C:\Apache\Apache2\htdocs\COMtest.php on line 17
Warning: (null)(): Unable to lookup quit: Call was rejected by callee. in C:\Apache\Apache2\htdocs\COMtest.php on line 21
Some background info: I do have office 2000 pro installed on the server. My PHP version is 4.3.7
The php configuration for COM is:
com
Directive Local Value Master Value
com.allow_dcom Off Off
com.autoregister_casesensitive On On
com.autoregister_typelib Off Off
com.autoregister_verbose Off Off
com.typelib_file no value no value
Any help is GREATLY appreciated.