Page 1 of 1

Execute an external app.

Posted: Sun Nov 01, 2009 4:54 am
by ramandhingra
Hi Guys

I am writing a PHP script and I need to run an exe file from within the script. I know most hosts doesn't allow it, but thats not an issue as we would be running it on our own local server.

I know there are functions such as system, shell_exec, passthru, etc to execute a system command, and I am able to execute my EXE file using this, but now the issue is that I want the program's GUI to be displayed when opened, like if I open calc.exe or notepad.exe, it should actually show calculator or notepad, but it isn't happening, any ideas how to do it? Thanks.

Re: Execute an external app.

Posted: Sun Nov 01, 2009 1:28 pm
by requinix
It's configuration-dependent. What web server and what operating system?

Re: Execute an external app.

Posted: Sun Nov 01, 2009 1:39 pm
by ramandhingra
Apache and XP. :)

Re: Execute an external app.

Posted: Wed Nov 11, 2009 4:15 am
by ramandhingra
Come on guys!