Hello Guys,
I am trying to make php script on unrar specific folder, this is the code i wrote so far :
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
I am trying to make php script on unrar specific folder, this is the code i wrote so far :
PHP:
$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