COM

From: Date: Sun, 30 Sep 2001 01:03:18 +0000
Subject: COM
Groups: php.general 
Request: Send a blank email to php-general+get-69334@lists.php.net to get a copy of this message
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 Sorry if it bugs anyone that I posted here and the WinDoze as well but no seemed home there<G>Busy rebooting I guess

« previous php.general (#69334) next »