function get_surl($url) { $ch = curl_init(); $header_data = array("User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" , "Referer: https://am0900.tistory.com"); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, true); // 헤더 정보 보냄 curl_setopt($ch, CURLOPT_HTTPHEADER, $header_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, ..