Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have installed .exe file using wine in my linux machine. Using shell_exec I could launch the exe file via command prompt using php. When I try to run php program from the browser am getting a blank page. How to launch the executables from the browser using php?

php code:

<?php

    shell_exec("cd / ; wine /home/quads/.wine/drive_c/Program\ Files/MathType/MathType.exe");
    ?>


If I run this through command prompt it could launch an application but via browser it
doesn't work.It it works via browser then I can access that application from other system using
"myipaddress/phpprogram"
Posted
Comments
ZurdoDev 7-Jan-15 7:53am    
The browser blocks this due to security reasons. I think you can enable the option in IE but don't know about the other browsers.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900