Hi Friends,
I want to do a “beep” sound after any error message,
I found this code to do these task in http://php.net/manual/en/ref.com.php
$com = new COM(“DynamicWrapper”);
$com->Register(“KERNEL32.DLL”, “Beep”, “i=ll”, “f=s”, “r=l”);
$com->Beep(5000, 100);
I put these code into a PHP module “sound_beep”, then I call it before the sc_error_message macro
sound_beep();
sc_error_message(“any message”);
when it is executed an error is displayed,
Fatal error: uncaught exception “com_exception” with message "failed to create COM object “Dinamyc Wraper” sintax no valid in … bla bla bla
What is the correct sintax or steps to do these code run ok ?
Aquiles