Full URL not working with php include

前端 未结 6 1962
闹比i
闹比i 2020-12-07 03:55

So, I am trying to insert a file with a php include, but for some reason it doesn\'t work with the full URL.

This works:

6条回答
  •  执念已碎
    2020-12-07 04:24

    Does your php.ini allow you to use remote files with include?

    If it's on your own domain then it makes no sense to require the absolute URL, as this would cause the server to open a connection to itself to retrieve the file via HTTP when a direct file operation would be so much simpler.

提交回复
热议问题