dima1236 Posted June 11, 2011 Share Posted June 11, 2011 Hello Guys, I am trying to make an PHP script that will scan for folders with RAR files and extract them the code i came up so far is : $files=read_folder_directory($fullpath); foreach ($files as $key => $value) { echo $key; echo "<br />"; natsort($value); foreach($value as $file) { //echo $file; echo "$fullpath/$key/$file"; echo "<br />"; echo $string='unrar e -y'."$fullpath/$key/$file $fullpath/$key/"; echo $exec = exec($string); echo "<br />"; } } now if i paste $string output into shell, it does goes and unrar perfectly fine, however $exec returns : No files to extract, any ideas on what is wrong ? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/239080-php-unrar-problem-please-help/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.