I am writing a simple web upload script. The goal is to upload a file using php, and then calling a java program to process this file. I have done the work for uploading
&1");//shows # of errors echo ""; echo exec("java theNameOfYourJavaProgram 2>&1");//this line executes it echo ""; echo shell_exec("javac theNameOfYourJavaProgram.java 2>&1 ");//compiles it ?>