im trying to run a java file through php and shell_exec() is behaving in a strange way.
<?php
shell_exec("javac Driver.java");
echo shell_exec("java Driver");
?>
This code causes the contents of the java file to be displayed in my web browser and i have no idea why as i am new to php. Any insight would be appreciated.