I need to run a PHP script from a Java class and get the output of the script in order to notify the end user of the results. I will use Runtime.getRuntime.exec("php "); in order to execute the PHP script, but how to capture the console output?
Any suggestions?