使用php函数file_get_contents得不到数据。
代码如下:
<?php
$str = file_get_contents("http://www.baidu.com");
var_dump($str);
?>显示为空字符串。怎么回事儿啊?????????????
代码如下:
<?php
$str = file_get_contents("http://www.baidu.com");
var_dump($str);
?>显示为空字符串。怎么回事儿啊?????????????
System => Linux