Solution: php.ini中启用allow_url_open并设置user_agent使用ob抓取页面 ob_start(); readfile($url); $text=ob_get_contents(); ob_end_clean(); 使用curl抓取页面