function curl_get_content($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $content = curl_exec($ch); curl_close($ch); return $content; } 맨날 인터넷 찾는게 귀찮아서 기록.출처 : http://mytory.net/archives/8643