警告:require_once(): http:// 包装器在服务器配置中被 allow_url_include=0 禁用
我正在尝试通过以下方式在页面中包含php文件
require_once(http://localhost/web/a.php)
我收到错误
Warning: require_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0
我在php中更改.ini这有效,但我认为不是每个人都会让我更改他们的php.ini文件。allow_url_include=1
那么,有没有办法做到这一点呢?