问答详情
源自:2-1 入口文件.mp4

include失败

开发环境:Linux MIPS 我只是将老师的“IMOOC”改成了“LOCUS_WIFI”,其他的什么都没改

错误信息:Warning: include(/core/common/function.php): failed to open stream: No such file or directory in /mnt/locus_wifi/index.php on line 14

Warning: include(): Failed opening '/core/common/function.php' for inclusion (include_path='.:') in /mnt/locus_wifi/index.php on line 14

Fatal error: Call to undefined function p() in /mnt/locus_wifi/index.php on line 15

提问者:susuz 2018-05-09 15:30

个回答

  • qq_咱走_0
    2018-06-20 15:32:21

    define('IMOOC',realpath('./'));

    define('CORE',IMOOC.'/core');

    define('APP',IMOOC.'/app');


    define('DEBUG',true );


    if(DEBUG){

    ini_set('display_error','on');

    }else{

    ini_set('display_error','off');

    }

    include CORE.'/common/function.php';


    p(IMOOC);


  • 兔子L先生
    2018-05-12 23:52:14

    文件引入错误了呀