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

后端 未结 5 739
执笔经年
执笔经年 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:20

    The parameter to the require_once statement should be a file path, not a URL.

    You are telling the web server to import a file from the file system, not the client to import the file from the web.

    It is documented on the include statement page.

提交回复
热议问题