PHP is open source afaik, so edit the code to allow for the server (having to use the modeed php) to communicate with your program, of course you have to use your own server to do this, unless you ask your host very nicely to do this.