글쎄, 최선의 방법은 콘텐츠를 다른 방식으로 검색하고 문서를로드하는 것입니다. cURL을 사용하여이를 수행 할 수 있습니다.
$useragent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1";
$ch = curl_init();
// set user agent
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_HEADER, 0);
// grab content from the website
$content = curl_exec($ch);
// load the content in your dom
$html = new DOMDocument();
$html->loadHTML($content);
출처
2012-07-15 22:11:59
j0k
재미 있을지 모르지만이 가능성을 알지 못했습니다. – j0k