PHPでコンパイルエラーを出したいです。一部のコマンドの出力は取得できますが、コンパイル コマンドの出力は取得できません。例えば :
$compileCode = "g++ -o program program.cpp";
$output = `$compileCode`;
動作しません。しかし
$output = `ls -l`;
作品
PHPでコンパイルエラーを出したいです。一部のコマンドの出力は取得できますが、コンパイル コマンドの出力は取得できません。例えば :
$compileCode = "g++ -o program program.cpp";
$output = `$compileCode`;
動作しません。しかし
$output = `ls -l`;
作品