PHP: I get a completely blank page, I don't know how to debug this in PHP

后端 未结 5 731
执笔经年
执笔经年 2021-01-22 06:04

I\'m having some issues to debug this in php. When I include this line:

require_once(\"http://\" . $_SERVER[\"HTTP_HOST\"] . \"/dompdf/dompdf_config.inc.php\");
         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-22 06:30

    This a very unusual and insecure way to include files, but yet if you still want to use it, make sure that the file you're including isn't being executed on the remote server since you probably targeting the php source code on the require_once here not the final output of it.

提交回复
热议问题