i ve a .php page and now i want to run a java program in the backend after submitting a form in php.i ve tried using exec(), system() functions and sadly its not working. please help me out. This is the code snippet:
if($_POST["ADD"])
{
echo "Phrase has been added now"."<br />";
$lastline=exec("java -Dwordnet.database.dir=D:\wordnet\2.1\dict Process",$retval);
}
Process is my main class which I want to be executed.