Possible Duplicate:
invoking a php method from java
I am writing a Java class. And I have some logic in test.php. One of the methods of that Java class should invoke test.php, so that test.php performs some computation and returns the result to the invoking Java method. Can I do that with something like the following?
Runtime rt = runtime.getRuntime();
process exec = rt.exec(test.php);