code to run java program from website using php
<p>I have a website and want to be able to allow the user to run a Java file on the server from the website.</p>

<p>I want the user to click a button which will run the Java file on the server AND anything printed to standard-out by the Java program will be printed out on the website for the user to see.</p>

<p>How can this be done (call Java program from PHP and feed the standard out from the Java file back to the PHP website)?</p>

<p>please provide detail code...</p>
