Im trying to make a program with winbinder that converts .iwd to .zip (its possible to do it just by renaming the .iwd to .zip) and i need to know how to take my varible that contains the file and make it overwrite the extension with a .zip
case 11:
            $filename = $GLOBALS["orig_filename"];
            $withoutExt = preg_replace("/\\.[^.\\s]{3,4}$/", "", $filename);
            $filename_with_zip = $filename."zip";
            echo shell_exec("rename ,"$filename" ,"$filename_with_zip"");
            echo $filename_with_zip;
        break;
 
     
     
    