When you want to use file_get_contents($url), some website may forbid your action like this .
The way to solve is: add user agent
ini_set('user_agent', 'Mozilla/5.0'); // slove the HTTP request failed! HTTP/1.1 403 Request Blocked Problem
$url = "http://www.biyixia.com";
$data = file_get_contents($url);
$dom = new DOMDocument();
@$dom->loadHtml($data);
Hope it helps someone~!