【发布时间】:2018-03-07 11:34:13
【问题描述】:
我想从本地主机上的另一台服务器运行 php 脚本,我尝试了 include "http://example.com/settings/aiacacc.php";,但出现错误。
include(): http:// wrapper is disabled in the server configuration by allow_url_include=0
如何使用php.ini 文件从另一台服务器启用include。我知道这不是一个好习惯,但我的应用程序只能在 localhost 上运行。我不希望禁用此设置。
我想从另一台服务器返回一个 php 脚本,然后在我的本地主机上执行这个脚本
【问题讨论】:
-
url
http://example.com/settings/aiacacc.php确实返回 PHP 脚本或文件的编译版本? -
它返回一个 PHP 脚本
-
// wrapper is disabled in the server configuration by allow_url_include=0