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
Send Windows message with PostMessage(HWND_BROAD... from PHP
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Send Windows message with PostMessage(HWND_BROAD... from PHP
Have you tried SendMessage?
Re: Send Windows message with PostMessage(HWND_BROAD... from PHP
I just tried SendMessage and it doesn't get through either. I am going to try UDP sockets instead, for which PHP has a define function.