Idiot-proof, cross-browser force download in PHP

后端 未结 7 1281
借酒劲吻你
借酒劲吻你 2020-12-16 05:40

I\'m using forced download to download mostly zips and mp3s on site i did (http://pr1pad.kissyour.net) - to track downloads in google analytics, in database and to hide real

7条回答
  •  春和景丽
    2020-12-16 06:26

    print($this->_fullread($stream,1024*16));

    I assume _fullread is within a class? If the code looks like the above then $this-> wouldn't work.

    Does it output the file contents to the screen if you commented out all of the header stuff?

提交回复
热议问题