Download of .zip file runs a corrupted file php

后端 未结 7 430
误落风尘
误落风尘 2020-12-03 17:04

I\'m trying to force a download of a protected zip file (I don\'t want people to access it without logging in first.

I have the function created for the login

7条回答
  •  眼角桃花
    2020-12-03 18:09

    I bet two beers that a PHP error occurs, and the error message messes up the ZIP file. The requested file probably doesn't exist.

    Open the ZIP file with notepad or a similar text editor, and find out what's wrong.

提交回复
热议问题