how can xampp's php call the COM
Posted: 25. July 2005 19:18
<?php
// Load the appropriate type library.
com_load_typelib('Word.Application');
// Create an object to use.
$word = new COM('word.application') or die('Unable to load Word');
print "Loaded Word, version {$word->Version}\n";
// Open a new document with bookmarks of YourName and YourAge.
$word->Documents->Open('D:/apache/Projects/ham/ham_file/Unfilled1.DOC');
?>
xampp can't call the COM, does anyone know how to do this ?
// Load the appropriate type library.
com_load_typelib('Word.Application');
// Create an object to use.
$word = new COM('word.application') or die('Unable to load Word');
print "Loaded Word, version {$word->Version}\n";
// Open a new document with bookmarks of YourName and YourAge.
$word->Documents->Open('D:/apache/Projects/ham/ham_file/Unfilled1.DOC');
?>
xampp can't call the COM, does anyone know how to do this ?