system() not working in php using windows server 2003

Posted by jazzy on Stack Overflow See other posts from Stack Overflow or by jazzy
Published on 2009-11-16T14:28:53Z Indexed on 2010/05/04 13:48 UTC
Read the original article Hit count: 193

Filed under:
|
|

hi i have to extract the cabfile(.cab) on the server. i am Finding such script which extract cab file but i didn't get it yet. So now i am try to extract using cabarc.exe. But i face the problem that when i run command throuw commandline its work fine but when i give same command to system() or exec() function in php it is not work. code is as follow:

    $command = "c:\\exe\\cabarc X c:\\cab\\data.cab c:\\data\\";
if(($output = system($command,$return) != false)
{
  echo "$return";
}

it is not working when i use same string in commandline it works fine. please any body help me to why it not working what to do tomake it work is ther any rights issue. I had give the execute permission to the site.

thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about iis6