using PHP to run third party program (IIS)
Posted: Sun Feb 17, 2008 10:59 pm
Hi all, I'm new to PHP and to this forum too.
I got a problem regarding to the subject title by using exec() / system() and other forms of program execution listed on the official PHP website. I hope that anyone who got similar experience or solution can reply to this topic.
The target application is a .BAT file. For example, The .BAT file is used to open notepad.exe. It works when I double click the notepad.BAT. However, it wont work when I use exec(notepad.BAT); in my PHP code. The browser hanged without any response and when I open up the task manager the notepad.exe is somehow running in the background.
I've tried searching the forum about related topics and followed some of the instructions given(security settings) by fellow solution contributors. Unfortunately those wont work as well.
Thanks in advance to those who read and reply.
I got a problem regarding to the subject title by using exec() / system() and other forms of program execution listed on the official PHP website. I hope that anyone who got similar experience or solution can reply to this topic.
The target application is a .BAT file. For example, The .BAT file is used to open notepad.exe. It works when I double click the notepad.BAT. However, it wont work when I use exec(notepad.BAT); in my PHP code. The browser hanged without any response and when I open up the task manager the notepad.exe is somehow running in the background.
I've tried searching the forum about related topics and followed some of the instructions given(security settings) by fellow solution contributors. Unfortunately those wont work as well.
Thanks in advance to those who read and reply.