I am trying to run an exe file on my AWS Windows Server 2012 Instance using exec() function of PHP to execute command. But it makes my browser to show loading indefinitely. Command runs perfectly when I execute it on my server. When I run
echo exec('whoami');
It returns account username. So some commands are working through php. But when I run my executable file like:
echo exec('myfile.exe');
It makes browser to keep on showing loading . (I have added path of my exe to environment variables so that I can directly access my exe from command prompt)
Any help is appreciated. Thanks