By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,680 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,680 IT Pros & Developers. It's quick & easy.

better exec() command

P: n/a
I work in a network support office which uses a web form to receive
network related problem reports from our end users. The web server is
IIS 5.0 on win2k server, and we use PHP and MySQL to handle the form
and tracking.

I'd like this setup to launch an mp3 player on the web server when a
problem report is sent in. I've tried exec("little mp3 player i
wrote"), but there are two issues with it:

1) I think the mp3 player runs as the user who sends in the report.
If the report is sent from the web server itself, everything works
fine. Otherwise, the mp3 player runs in the background and can't be
shut off.

2) The script waits for the mp3 player to be closed to finish.

I'm guessing there's a different command that will solve problem 2,
but I'm stumped on problem 1. It's more of an IIS/windows issue,
probably, but any help you guys could give me would be great. Thanks.

-steronz
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
steronz wrote:
I work in a network support office which uses a web form to receive
network related problem reports from our end users. The web server is
IIS 5.0 on win2k server, and we use PHP and MySQL to handle the form
and tracking.

I'd like this setup to launch an mp3 player on the web server when a
problem report is sent in. I've tried exec("little mp3 player i
wrote"), but there are two issues with it:

1) I think the mp3 player runs as the user who sends in the report. I doubt it, unless you have unchecked the box in IIS which says "Allow
anonymous connections" (it's been a while since I used IIS). If the report is sent from the web server itself, everything works
fine. Otherwise, the mp3 player runs in the background and can't be
shut off.

If PHP is running as an ISAPI module in IIS, then it will be running as
the same user as IIS is running as. You can tell by going into the
services control pannel and looking for World Wide Web Services
(somthing like that). You can then select properties and change who this
runs as.

I'm not sure what the deal is if you're running PHP as CGI from IIS. If
so, check out IIS's CGI settings.
2) The script waits for the mp3 player to be closed to finish.

I'm guessing there's a different command that will solve problem 2,
but I'm stumped on problem 1. It's more of an IIS/windows issue,
probably, but any help you guys could give me would be great. Thanks.

-steronz


Do yourself a favour, use apache 1.3.x(latest) for windows instead. I've
been using it on a busy production server now for over 6 months and I've
NEVER had a problem with it.

Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.