Download of .zip file runs a corrupted file php

后端 未结 7 435
误落风尘
误落风尘 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:10

    Late answer but maybe useful for users not being able to make force download work.
    Add the following at the top of your php script

    <?php
    apache_setenv('no-gzip', 1);
    ini_set('zlib.output_compression', 0);
    
    0 讨论(0)
提交回复
热议问题