Serving large files with PHP

前端 未结 9 989
北海茫月
北海茫月 2020-12-13 07:51

So I am trying to serve large files via a PHP script, they are not in a web accessible directory, so this is the best way I can figure to provide access to them.

The

9条回答
  •  别那么骄傲
    2020-12-13 08:13

    Have a look at fpassthru(). In more recent versions of PHP this should serve the files without keeping them in memory, as this comment states.

提交回复
热议问题