In my PHP project, I have an executable (Windows, .exe) which needs to be ran ocassionally by PHP itself. I'm aware of exec
and shell_exec
but am not sure whether this is actually what I'm looking for.
The executed application (console application, .NET) returns at least one line in the console, this shall now be grasped by PHP. And I even wonder whether it's possible to get more than one line from the console, so for example if the console's logging what it does?