<?php $url = "http://www.pc100.net"; $contents = file_get_contents($url); //如果出现中文乱码使用下面代码 //$getcontent = iconv("gb2312", "utf-8",$contents); echo $contents; ?>
来自: http://www.thinkphp.cn/topic/28229.html
posted on 2015-03-01 17:44 python100 阅读(379) 评论(0) 编辑 收藏 举报