kieran kieran - 1 month ago 8
PHP Question

Sending commands to windows command line (cmd) from PHP

Is this possible?

What I want to do is send:

run_app.exe -param 'test' -name 'tester'


to a windows cmd line from PHP.

Is this possible or do I need to write a windows service that is somehow triggered by the application?

Answer

You can use exec() for that.