How are paths calculated in PHP - Why are files in the current directory ignored?

前端 未结 3 1149
眼角桃花
眼角桃花 2021-01-22 21:31

Update:

The index.php file here:

/public_html/d/index.php

includes:

/public_html/d/core/source/class.File1.php
<         


        
3条回答
  •  旧巷少年郎
    2021-01-22 22:15

    Have you tried including with a relative path?

    include './class.File2.php';
    

    Is class.File1.php itself included by some other script?

提交回复
热议问题