exec function working on apache but not on IIS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
abdulsay
Forum Newbie
Posts: 2
Joined: Wed Dec 06, 2006 7:13 am

exec function working on apache but not on IIS

Post by abdulsay »

Hi all,

I am using Apache 2, php 4.4.4 on win2k. I have an executable file when i pass some parameters in this file it's returns and XML string.

When I run this with APACHE server it's work absolutely fine, But when I tested this script on IIS this script fail.

My code is:

$file = "c:/path/to/file/file.ext";
$executable = "c:/path/to/executable/ext";
$command = "$executable -jf yes -if $file";

exec($command, $output, $return);

On apache it's runs successfully but on IIS it returns 128. I also tried other commands like system, shell_exec, passthru but the result is same. I also used cotted commands but they work only on apache not on IIS.

I dont know what this 128 stands for :?:.

Please help me.
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

Post by amir »

try system()
BOL!
abdulsay
Forum Newbie
Posts: 2
Joined: Wed Dec 06, 2006 7:13 am

system also not working

Post by abdulsay »

hey amir,

Thanks for a quick reply, But i have tried all exec family functions and all time I get 128 on IIS web server
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

Post by amir »

What is the exact error you are facing with?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

128 would be specific to the application you are attempting to run more often than not, so I'd suggest digging into the documentation for it.
Post Reply