PHP readfile() and large files

后端 未结 7 851
逝去的感伤
逝去的感伤 2020-12-05 20:12

When using readfile() -- using PHP on Apache -- is the file immediately read into Apache\'s output buffer and the PHP script execution completed, or does the PHP script exec

7条回答
  •  半阙折子戏
    2020-12-05 20:27

    downloading files thru php isnt very efficient, using a redirect is the way to go. If you dont want to expose the location of the file, or the file isnt in a public location then look into internal redirects, here is a post that talks about it a bit, Can I tell Apache to do an internal redirect from PHP?

提交回复
热议问题