测试代码如下:
<?php
$url = "www.baidu.com";
$contents = file_get_contents($url);
//如果出现中文乱码使用下面代码
//$getcontent = iconv("gb2312", "utf-8",$contents);
echo $contents;
?>
错误如下:Warning: file_get_contents(www.baidu.com) [function.file-get-contents]: failed to open stream: No such file or directory in /www/web/wwwqzkkcn/public_html/1.php on line 3
各位大侠帮忙看看