策码兄弟

file_get_contents为何无法采集某些压缩过的网站

有些网站直接用file_get_contents就能采集,

但是有些不行。

于是可以在网址前加入 'compress.zlib://‘

$url = 'compress.zlib://' . 'http://shihuwansm.soufun.com/house/1823108428/housedetail.htm';
echo file_get_contents($url);

posted @ 2013-12-17 11:17  策码秀才  阅读(335)  评论(0编辑  收藏  举报
策码兄弟