>/tmp/out.txt 2>&1 &"); foreach ($files as $file) { shell_exec("cd /home/downloads;rm ./'".$file."' >>/tmp/rm.txt 2>&1 &"); } exit; } else { echo json_encode(array("error" => "empty file")); } break; case 'GET': echo '