How can i show the images outside the web root directory in my php application?

前端 未结 4 910
长情又很酷
长情又很酷 2021-01-05 06:49

I have web application in PHP using apache server, linux. For some security reason i am keeping the documents and images outside web root. How can i show these images, when

4条回答
  •  温柔的废话
    2021-01-05 07:36

    use the ob_clean() function of php before the readfile()

    it will usefull to avoid space like issues

提交回复
热议问题