Forum Moderators: coopster

Message Too Old, No Replies

How to call java function in PHP

         

dongol147

2:17 pm on Apr 2, 2009 (gmt 0)

10+ Year Member



Hi,
I am new in PHP/MYSQL/Web development :)
I have 2 PCs (local system and remote system). Both are running Apache/PHP/MYSQL. The local system is running a web application (AJAX/PHP/MYSQL). I need to send some data to a remote system (that runs a web service).
A web service client is made (on the local pc) and it works (inserts the data in the remote PC MYSQL data base)
Now I need to call this client whenever a MSQL transaction is made on the local PC MYSQL.
There was an advice to use sceduling (system calls to rung the Java client).
As I do not want any Web GUI to be invloved (calling the java client) I would prefer to have it on the server side of the local PC..
Your advice is highly appreciated.
Thanks

coopster

8:00 pm on Apr 7, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, dongol147.

You don't need to have the browser open and active to execute a php script. Have a look at Using PHP from the command line [php.net]. Set up your trigger or job schedule to execute your script using the command line syntax.