php-general | 2001092
Date: 09/29/01
- Next message: Michael Katz: "RE: [PHP] Problem with mail()"
- Previous message: Martin Kampherbeek: "Re: [PHP] Get current date and time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Michael Katz: "RE: [PHP] Problem with mail()"
- Previous message: Martin Kampherbeek: "Re: [PHP] Get current date and time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

