RE: [PHP-WIN] COM /DCOM

From: Date: Sun, 30 Sep 2001 18:37:46 +0000
Subject: RE: [PHP-WIN] COM /DCOM
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9623@lists.php.net to get a copy of this message
Did you set-up the permissions in DCOMCNFG.EXE? This applies for COM and DCOM in win2000 and NT. Also, DCOM has to be enabled when compiling PHP4.x Alain -----Original Message----- From: Mike [mailto:massey@nospam.rmci.net] Sent: Saturday, September 29, 2001 4:58 PM To: php-windows@lists.php.net Subject: [PHP-WIN] COM /DCOM 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: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#9623) next »