如何将可执行文件嵌入输入文件并将结果输出为 PHP 中的文件


How to embed an executable file with a input file and output the result as a file in Php?

要嵌入可执行文件,我编写了此代码

<?php     
$file = "C:/embed";    
$output = exec($file);    
echo $output;
?>

现在如何给出输入命令,文件名 embed.in 在哪里?

"嵌入>embed.in"

 $file = "C:/embed > embed.in";

上面有什么问题?