I'm running this script:
$output = "unrar x -y ".$number.".rar /bundle/";
echo "<pre>";
system($output);
echo "</pre>";
Which is outputting
Extracting /var/www/html/bundle/Compressed_file_test/lgc-m.r29
0% 1% 2% OK
I want to figure out the folder name which it is, in this case "Compressed_file_test". Is there a way i can get that information ?