【发布时间】:2015-04-11 14:09:36
【问题描述】:
我们的 url 是远程 url。我可以通过 IP 地址运行。它抛出错误为“file_get_contents 无法打开流:连接被拒绝”。我已经使用了这个代码。
代码:
$html = file_get_contents('http://xx.xxx.xx.xx:xxxx/apps/index.php');
print_r($html);
var_dump($html);
这是什么错误?
【问题讨论】:
-
它可以在本地和任何电脑上工作,但它不能在 Godaddy 服务器上工作
-
@Lorenz Meyer,我没明白这一点。
-
但我已经连接到远程服务器 url 然后错误显示 file_get_contents 无法打开流:连接被拒绝
标签: php sql-server remote-server phpinfo