89050909 发表于 2012-12-7 16:03:30

关于 file_get_contents 测试

<?php
$file_contents = file_get_contents('http://www.17173.com');
echo $file_contents;
?>

以上可以获取远程页面,而下面获取不到,很多网站都获取不到,有些又可以,请问是服务器的什么问题,怎么解决呢

<?php
$file_contents = file_get_contents('http://www.baidu.com');
echo $file_contents;
?>

licess 发表于 2012-12-7 17:36:25

只要有可以的就不是服务器上的问题
页: [1]
查看完整版本: 关于 file_get_contents 测试