Hello. Faced the following task - you need to compile a project written in C ++ from under PHP.
Googled, stumbled upon this: Compiling C ++ and PHP
Ie, as I understand it, all that’s worth is that calling G ++ through system() or exec() , and something like this will be released:
$out = exec(g++ $proj -o $o); But I would like to clarify the following - how dangerous can this approach be? Moreover, the project code is almost completely static and changes minimum information before compiling.
Interesting expert opinion, in general.
make. - avp