PHP读取远程文件的三种方法

file_get_contents  <?php $url = http://www.xxx.com/; $contents = file_get_contents($url); //若是出现中文乱码使用下面代码 //$getcontent = iconv("gb2312″, "utf-8″,file_get_contents($url)); //echo $getcontent; echo $c
相关文章
相关标签/搜索