Hi All
Where is some good info on useing COM or DCOM with PHP?

Both of my scripts bellow fail and I cannot seem to find why.

<?php

$Instance = new COM
(string "Word.Application", string "216.0.0.0");

?>
or
<?
$word = new COM("word.application") or die("Unable to instanciate Word");
print "Loaded Word, version {$word->Version}\n";
$word->Visible = 1;
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");
$word->Quit();
?>

Running on Win2K PHP 4.0.6



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to