I am designing a web application which uploads code from server and runs cppcheck on it. I am using PHP for the same.
I tried using exec($command,$output,$status);
command
and command is "cppcheck ". $filename;
The $output array which is returned contains only the first line i.e.:
Checking file.cpp..
The line
"(error) Array 'a[10]' accessed at index 10, which is out of bounds."
is displayed in the error.log file of the httpserver. It is actually not a command line error or php error, but an error produced by cppcheck. Is it because the string contains "error" it goes into error.log? How do I fix this?