When I compile C/C++ program with popen in php... I got this error:
popen
php
g++: error trying to exec \'cc1plus\': execvp: No such file or
I don't know why but i just renamed my source file COLARR.C to colarr.c and the error vanished! probably you need this
sudo apt-get install g++