开发者社区> 问答> 正文

求大牛指点php include 路径没问题 报错 ?报错

 "PHP message: PHP Warning:  include(/iptv/index.php): failed to open stream: No such file or directory in /Data/webapps/dmp/index.php on line 48
PHP message: PHP Warning:  include(): Failed opening '/iptv/index.php' for inclusion (include_path='.:/Data/apps/php-fcgi/lib/php') in /Data/webapps/dmp/index.php on line 48" while reading response header from upstream, client: 113.31.72.140, server: analysis.adt100.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "analysis.adt100.com"
2014/12/17 17:35:22 [error] 12014#0: *4877861 FastCGI sent in stderr: "PHP message: PHP Warning:  include(/iptv/index.php): failed to open stream: No such file or directory in /Data/webapps/dmp/index.php on line 48
PHP message: PHP Warning:  include(): Failed opening '/iptv/index.php' for inclusion (include_path='.:/Data/apps/php-fcgi/lib/php') in /Data/webapps/dmp/index.php on line 48" while reading response header from upstream, client: 113.31.72.140, server: analysis.adt100.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "analysis.adt100.com"
2014/12/17 17:35:22 [error] 12014#0: *4877861 FastCGI sent in stderr: "PHP message: PHP Warning:  include(/iptv/index.php): failed to open stream: No such file or directory in /Data/webapps/dmp/index.php on line 48
PHP message: PHP Warning:  include(): Failed opening '/iptv/index.php' for inclusion (include_path='.:/Data/apps/php-fcgi/lib/php') in /Data/webapps/dmp/index.php on line 48" while reading response header from upstream, client: 113.31.72.140, server: analysis.adt100.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "analysis.adt100.com"  求解决

展开
收起
爱吃鱼的程序员 2020-06-14 18:52:00 1129 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    服务器没有/iptv/index.php这个问题

    (include_path='.:/Data/apps/php-fcgi/lib/php')

    你和js弄混了吧,/并不能表示根目录,换为_ROOT

    define('_ROOT',str_replace('\\','/',substr(dirname(__FILE__),0,-7)));//7?

    引用来自“非良”的评论

    (include_path='.:/Data/apps/php-fcgi/lib/php')

    引用来自“leo108”的评论

    服务器没有/iptv/index.php这个问题

    2020-06-14 18:52:19
    赞同 展开评论 打赏
问答分类:
PHP
问答地址:
问答排行榜
最热
最新

相关电子书

更多
阿里云栖开发者沙龙PHP技术专场-直面PHP微服务架构挑战-高驰涛 立即下载
PHP安全开发:从白帽角度做安全 立即下载
PHP 2017.北京 全球开发者大会——高可用的PHP 立即下载