php exec under IIS?


When I try to run file 1.php with code

  exec("lame.exe -m m -b 16 --resample 22.050 1.mp3 2.mp3");

On my local machine (my machine use apache as web server) it works fine, and create second file.

When I try to run same code on server which running IIS 6 (on windows 2003 platform) it doesn't  work.

Does anyone know how to solve this problem?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

a couple of things.  Make sure that in the properties of IIS you have allowed 1.asp as a recognized page. Meaning that index.html, index.htm, default.php and some other ones are allowed.  

Please go to your web properties, and then add 1.asp to be allowed to run.  If this doesn't work for you...

Try allowind active server pages to run. It is a setting in the IIS menu:
To enable Active Server Pages you will do the following:

1. Go into Internet Information Services

2. Select Web Service Extensions

3. Select "allow" for Active Server Pages
There is a better tutorial to show you how to run active server pages here.
dctengineerAuthor Commented:
I have problem with executing .exe files from PHP, not ASP.
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

dctengineer this might help you...
dctengineerAuthor Commented:
Problem resolved by adding rights for appropriate usarname to cmd.exe

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.