If you are using php on a linux machine you can use the system function.
http://uk2.php.net/manual/en/function.system.php
Or if you are using Windows machines, you can use shell_exec function.
http://uk2.php.net/shell_exec
example:
[PHP]$Info = explode("\n", shell_exec(".\\progs\\program.exe"));
[/PHP]
Will dump the output of program.exe in folder /progs/ to $Info using next line carriage as the exploder/seperator.
Hope that helps