I a am writing a web-based application that uses php to submit a user's form data to the server where the data is sent to a c++ program on the server - via a text file containing all of the form data (html_in.txt). The executable then seeks this input file and finally writes a "results" text file onto the server(html_out.txt). PHP then opens the files and displays results back to the web. Question is why is my exec command doesn;t seem to work?
command goes like this
exec("/tmp/mucalc < tmp/html_in.txt > /dev/null");
anybody see any problems off hand?
Please let me know if you do or give me an idea on how i can capture the errors that are generated when it doesn't work?