I have a working exec("java $file") command in php, but the problem is that I'm not sure how to get standard output from a java program.
I realize that there is a second parameter (for example, exec("java $file", $output) ) but that doesn't seem to return output from a java program.
For example, if I have a java program with just a println("Hello World") in it, how can I get that output through exec() in php?
Thanks!