php - How to run a win32 console application on Linux/Apache web-hosting? -


the executable uses 2 un-managed dlls & gives output on console. i'm running on xampp/localhost (on pc) & grabbing console output php's exec()/passthru() function.

will run same way on typical apache/linux based web-hosting account? if not , can do?

in php :

<?php exec("tradelogin.exe",$output); //tradelogin.exe win32-console-app,  //situated @ xampp/htdocs, couple of supporting binary files & dlls  //(compiled on visual-studio-2015) echo $output[0]."<br/>"; echo $output[1]."<br/>"; ?> 

i can't tell if there permission problems (i'm on windows atm. can't try.)

if want run way, need windows emulator (like wine example), , use like

exec("wine tradelogin.exe 2>&1",$output); 

or full path may necessary. note execution of php code stop until program has finished running.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -