We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 20,550 times

Related Categories

Accessing COM objects from PHP

altphpfaq

PHP4 no longer uses the com_load function anymore. Instead, you can use the COM object:

<?
$word=new COM("word.application") or die("Cannot start word for you");
print "Loaded word version ($word->Version)\n";
$word->visible =1;
$word->Documents->Add();
$word->Selection->Typetext("Dit is een test");
$word->Documents[1]->SaveAs("burb ofzo.doc");
$word->Quit();
?>

If you are still using PHP 3, then you can use the com_load function.

Comments