php使用include报错require_once(../include.php): failed to open stream: No such file or directo

引入路径的问题,建议加入
include_once $_SERVER['DOCUMENT_ROOT']."/include.php";
意思是获取网站根目中的include.php

截图如下:

php使用include报错require_once(../include.php): failed to open stream: No such file or directo

 

相关文章:

  • 2021-05-08
  • 2021-08-25
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-04-12
猜你喜欢
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
相关资源
相似解决方案