I need to extract cabfile (.cab) on the server. I find a script that retrieves the cab file, but I haven't received it yet. So now I'm trying to extract using cabarc.exe. But I ran into the problem that when I run the command prompt command line, its work is fine, but when I provide the same command to the system () or exec () function in php, it does not work. The code is as follows:
$command = "c:\\exe\\cabarc X c:\\cab\\data.cab c:\\data\\";
if(($output = system($command,$return) != false)
{
echo "$return";
}
It does not work, when I use the same line on the command line, it works fine. please, any body will help me why it does not work, what to do if it works, this is any problem. I gave permission to execute on the site.
thanks
jazzy source
share