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

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

但是有些不行。

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

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

原文地址:https://www.cnblogs.com/legend-song/p/3478084.html