Hello Guys,
I am trying to make php script on unrar specific folder, this is the code i wrote so far :

PHP Code: 
    $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 the $string output into the shell it does work and extract the filers, however the $exec returns "No files to extract"

any advice will be appreciated

Thanks
dima1236 Reviewed by dima1236 on . PHP & unrar problem, please help Hello Guys, I am trying to make php script on unrar specific folder, this is the code i wrote so far : $files=read_folder_directory($fullpath); foreach ($files as $key => $value) { echo $key; echo "<br />"; natsort($value); foreach($value as $file) { //echo $file; Rating: 5