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
runtime rt = runtime.getRuntime(); process exec = rt.exec(test.php);
Please suggest. Thanks in advance.