Allow users to download files outside webroot

前端 未结 3 842
南旧
南旧 2020-12-03 09:34

Hello I am using PHP to allow users to upload files and I have them sitting in a folder outside webroot (/var/www) folder for security reasons. It is in the folder /var/uplo

3条回答
  •  眼角桃花
    2020-12-03 09:44

    A nice way to take a load of PHP is with mod_xsendfile if you can install it, all the PHP process has to do is send a reply header & exit, and the webserver will take care of the rest.

提交回复
热议问题