Is it possible to call an exe file and get result from it?
(basic) For example if I have something like :
app.exe
#include <iostream>
void main()
{
std::cout << "<?php echo text_from_exe; ?>" << std::endl;
}
Can I call the exe like this :
<?php
exec("app.exe");
?>
And get the output like “text_from_exe” ?
Note: This is very dangerous and shouldn’t really ever be run on a public-facing server