Send Windows message with PostMessage(HWND_BROAD... from PHP
Posted: Thu Dec 18, 2008 2:09 pm
I am trying to send a Windows message from a PHP script using PostMessage(HWND_BROADCAST... but having no success. I built a small console exe that sends the message and it works fine from the Windows command line. But when I call the exe from PHP with system, exec, passthru, shell_exec, I can get the writeln string that the exe generates on completion back to PHP but the message is not detected by my monitoring exe.
My goal is to alert an exe when a MySql table's contents are modified by PHP. MySql doesn't provide any means that I've found. So I was trying to send something from the PHP script after it modifies the table.
I am using xampp 1.6.8 PHP and MySql versions and Windows XP.
Any ideas?
+Les
My goal is to alert an exe when a MySql table's contents are modified by PHP. MySql doesn't provide any means that I've found. So I was trying to send something from the PHP script after it modifies the table.
I am using xampp 1.6.8 PHP and MySql versions and Windows XP.
Any ideas?
+Les