i have a script that takes c++ source code from an HTML textbox ( written by user )
and pass it to php and this php code writes the source code to a *.cpp file
and then usuing exec() i compile that .cpp
the problem is when i use exec() on any program it captures the output and put it in an array
exec("help.exe",$array);
and this array will hold the lines displayed
but when i use exec() on mingw32-g++ it doesnt store the output in the array no matter what i do
what are the limitations for exec or system to store the output ??
i made two programs to output string "hello world" using cout and printf and both work fine and the php stores the output "hello world"
can anyone help PLEASE