Too long uploading files to hosting and constant disconnection

Try using this php code to extract instead of default extractor as I just tried it and it worked for me.

<?php
  
$zip = new ZipArchive;
  
// Zip File Name
if ($zip->open('9M.zip') === TRUE) {
  
    // Unzip Path
    $zip->extractTo('./');
    $zip->close();
    echo 'Unzipped Process Successful!';
} else {
    echo 'Unzipped Process failed';
}
?>

Credits for script goes to How to unzip a file using PHP ? - GeeksforGeeks

I just modified the extract path in it.
Replace “9M.zip” with your zip file name.

5 Likes