我试图在php上使用COM扩展。但是我得到了这个错误。
Fatal error: Class 'COM' not found in C:\xampp\htdocs\Coba\tes.php on line 2
我使用XAMPP 1.8.2和PHP版本5.4.31
我已经尝试编辑PHP.ini并删除所有半冒号。但仍然得到相同的错误。我的PHP.ini
[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://php.net/com.typelib-file
com.typelib_file =
; allow Distributed-COM calls
; http://php.net/com.allow-dcom
com.allow_dcom = true
; autoregister constants of a components typlib on com_load()
; http://php.net/com.autoregister-typelib
com.autoregister_typelib = true
; register constants casesensitive
; http://php.net/com.autoregister-casesensitive
com.autoregister_casesensitive = false
; show warnings on duplicate constant registrations
; http://php.net/com.autoregister-verbose
com.autoregister_verbose = true
; The default character set code-page to use when passing strings to and from COM objects.
; Default: system ANSI code page
com.code_page=
我应该定义com.typelib_file还是手动启用COM扩展?