Create a zip file and download it

后端 未结 7 706
滥情空心
滥情空心 2020-11-29 04:16

I am trying to download a 2 files by creating the zip file on local-server.the file is downloaded in zip format but when i try to extract it.it gives error: End-of-

相关标签:
7条回答
  • 2020-11-29 05:07

    One of the error could be that the file is not read as 'archive' format. check out ZipArchive not opening file - Error Code: 19. Open the downloaded file in text editor, if you have any html tags or debug statements at the starting, clear the buffer before reading the file.

    ob_clean();
    flush();
    readfile("$archive_file_name");
    
    0 讨论(0)
提交回复
热议问题