Download of .zip file runs a corrupted file php

后端 未结 7 433
误落风尘
误落风尘 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 17:44

    try this to find if there is any error

    error_reporting(0);
    

    Do not print anything before writing the headers; Run an ob_start() to of your script, after the code edit your headers and then ob_flush() and ob_clean()

提交回复
热议问题