I hope you mean to run a built executable...
The exec
function will run the application similar to running it through a command line. This means that you can get the standard output of the application like you would through the command line.
It's kind of kludgy, if you can, just duplicate the executables functionality in PHP.