file_get_contents为何无法采集某些压缩过的网站
有些网站直接用file_get_contents就能采集,
但是有些不行。
于是可以在网址前加入 'compress.zlib://‘
$url = 'compress.zlib://' . 'http://shihuwansm.soufun.com/house/1823108428/housedetail.htm';
echo file_get_contents($url);
程序员是一种算法,好的程序员是一个最优的算法