Warning: require_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0

前端 未结 9 1976
自闭症患者
自闭症患者 2020-12-02 15:44

I am trying to include a php file in a page via

  require_once(http://localhost/web/a.php)

I am getting an error

 Warning:         


        
9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 15:47

    require_once(APPPATH.'web/a.php');
    

    worked for me in codeigniter

    check reference

提交回复
热议问题