Execute an external app.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ramandhingra
Forum Newbie
Posts: 4
Joined: Sun Nov 01, 2009 4:50 am

Execute an external app.

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Execute an external app.

Post by requinix »

It's configuration-dependent. What web server and what operating system?
ramandhingra
Forum Newbie
Posts: 4
Joined: Sun Nov 01, 2009 4:50 am

Re: Execute an external app.

Post by ramandhingra »

Apache and XP. :)
ramandhingra
Forum Newbie
Posts: 4
Joined: Sun Nov 01, 2009 4:50 am

Re: Execute an external app.

Post by ramandhingra »

Come on guys!
Post Reply