function get_channel_html() { $url = "http://ch.nicovideo.jp/" . $this->get_channel_id(); if (is_null($this->channel_description) || is_null($this->channel_keywords)) { if ($response = @file_get_contents($url)) { $document = new DOMDocument(); @$document->loadHTML($response); $metas = $document->getelementsByTagName("meta"); foreach ($metas as $meta) { $name = $meta->getAttribute("name"); $content = $meta->getAttribute("content"); if ($name == "description") { $this->channel_description = $content; } else { if ($name == "keywords") { $this->channel_keywords = $content; } } } } } }