PHP exec_shell using unrar.exe

preeciree

New Member
I'm running the following php code;\[code\]$output = exec('"D:\TESTDIR\unrar.exe" e "D:\TESTDIR\Icons.rar" -ppassword');echo $output;\[/code\]Which isn't working... I want it to extract the files into the same directory. If I copy the contents of the exec into a command line prompt it works just fine, so slightly confused.Trying the following;\[code\]$output = exec('"D:\TESTDIR\unrar.exe"');echo $output;\[/code\]Returns the last line of the unrar help file (which is expected).
 
Back
Top