Php Class COM not found
Posted: 30 Sep 2020, 09:48
I've been trying to use the PHP COM class in my script:
but I get receiving the following error.
I've tried to change php.ini and remove the semicolons from COM section.
And still getting the same error.
I'm using a XAMMP on Windows.
Code: Select all
$voice = new COM('SAPI.SpVoice');
Code: Select all
Fatal error: Class 'COM' not found in /XAMPP/htdocs/test.php on line 3
Code: Select all
[com]
com.typelib_file =
allow Distributed-COM calls
com.allow_dcom = true
com.autoregister_typelib = true
com.autoregister_casesensitive = false
com.autoregister_verbose = true
I'm using a XAMMP on Windows.