Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

php exec under IIS?

Posted on 2008-10-18
6
Medium Priority
?
713 Views
Last Modified: 2013-12-13
Hello,

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?
0
Comment
Question by:dctengineer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 7

Expert Comment

by:pr0t0c0l12
ID: 22748576
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
0
 
LVL 7

Expert Comment

by:pr0t0c0l12
ID: 22748580
There is a better tutorial to show you how to run active server pages here.

http://msdn.microsoft.com/en-us/library/ms972337.aspx
0
 

Author Comment

by:dctengineer
ID: 22748599
I have problem with executing .exe files from PHP, not ASP.
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 7

Expert Comment

by:pr0t0c0l12
ID: 22749203
0
 
LVL 7

Assisted Solution

by:pr0t0c0l12
pr0t0c0l12 earned 400 total points
ID: 22754140
dctengineer this might help you...

http://www.php.net/manual/en/ref.exec.php
0
 

Accepted Solution

by:
dctengineer earned 0 total points
ID: 22834027
Problem resolved by adding rights for appropriate usarname to cmd.exe
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question