Actually, iwant to write a client-server architecture.
When client posts a request to server, PHP will receive this command and run server-side Java program.After the Java program complete the work, the result return to PHP.Then PHP
responses the result back to client.