 <p>I finally chose to use <strong>websockets</strong> to solve my problem (with Ratchet). Like this, I can invoke my script from my browser passing the arguments I need to the executable file.</p> <p>PHP in CLI doesn't seem to have any problem with exec() on .exe files.</p>