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
相關文章
相關標籤/搜索