PHP calls COM components, PHP calls components
PHP to turn on COM components
1. Open COM option first to php.ini, com.allow_dcom = True 2. My environment Here is PHP5.4.7,
after PHP 5.4.5, the Com/dotnet module has become a separate extension, so you need to configure Extension=php_com_dotnet.dll in php.ini , if PHP version<5.4.5 is not required. Otherwise, it might be an error Fatal Error:class ' COM ' not found. the configuration method is: Simply add
extension=php_com_dotnet.dll in the extension list
After the configuration is complete, you can test that the statement is $word = new COM ("Word.Application") or Die ("Unable to instanciate word");p rint "Loaded Word, Version {$word- >version}\n "; The above statement must have Office installed to OpenOffice: $obj = new COM (" Com.sun.star.ServiceManager ") or Die ("Unable to instanciate Word");
http://www.bkjia.com/PHPjc/1072322.html www.bkjia.com true http://www.bkjia.com/PHPjc/1072322.html techarticle PHP calls the COM component, PHP calls the component PHP to open the COM component 1. The COM option is turned on in php.ini first, com.allow_dcom = True 2. My environment here is PHP5.4.7, after PHP 5.4.5, com/dotnet Module ...