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

前端 未结 9 1970
自闭症患者
自闭症患者 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

    WORDPRESS is having this error mostly:
    SOLUTION:
    Locate your PHP installed directory on Remote live hosting SERVER or "Local Server"
    In case of Windows os
    for example if you using xampp or wamp webserver. it will be in xammp directory 'c:\xammp\php'
    Note: For Unix/Linux OS, locate your PHP directory in Webserver

    Find & Edit PHP.INI file
    Find 'allow_url_include'
    replace it with value 'on'
    allow_url_include=On
    Save you php.ini & RESTART you web-server.

提交回复
热议问题