Require_once PHP Error

后端 未结 4 1548
闹比i
闹比i 2021-01-17 19:09

I\'ve been programming in PHP for several years now and never encountered this error before.

Here\'s my widget.php file:

re         


        
4条回答
  •  时光取名叫无心
    2021-01-17 20:01

    require_once('fruit.php');
    

    This searches for fruit.php in the same directory as widget.php is in, no matter what the current working directory is.

    require_once('../fruit.php');
    

    This searches for fruit.php in a directory above the current directory, not in the directory above the one widget.php is in.

提交回复
热议问题