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.
using PHP to run third party program (IIS)
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: using PHP to run third party program (IIS)
Functions like exec() are to run console applications that provide output on stdout. Notepad is a Windows app that will not work like this.
(#10850)
Re: using PHP to run third party program (IIS)
Oh... Notepad is just an example, I've tried on other applications like Winamp, third party video format convertor software that supports batch file processing also. Same situation...
Re: using PHP to run third party program (IIS)
I've tried Apache and did the following:
go start->control panel->administrative tools->services
then set the Apache 2 to log on as my account. It works.
But when I try to do the same on IIS, the IIS service itself failed to restart. Any ideas?
go start->control panel->administrative tools->services
then set the Apache 2 to log on as my account. It works.
But when I try to do the same on IIS, the IIS service itself failed to restart. Any ideas?