Corrections code to pull request
$zip->add($tmp_folder_full_path); can't pass the folder to add method , the zipe fil will be currupted