{"id":656,"date":"2002-11-07T04:43:18","date_gmt":"2002-11-07T04:43:18","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=656"},"modified":"2002-11-07T04:43:18","modified_gmt":"2002-11-07T04:43:18","slug":"%ec%8b%a0%eb%ac%b8%ec%82%ac%ec%9d%98-%eb%89%b4%ec%8a%a4%ea%b0%80%ec%a0%b8-%ec%98%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=656","title":{"rendered":"\uc2e0\ubb38\uc0ac\uc758 \ub274\uc2a4\uac00\uc838 \uc624\uae30"},"content":{"rendered":"<p>\uac01 \uc2e0\ubb38\uc0ac\uc758 \ucd5c\uc2e0\uc544\uc774\ud2f0 \ub274\uc2a4\uac00\uc838 \uc624\uae30<br \/>\n\uc6d0\ub798\ub294 \ud654\uc77c \ubd84\ub9ac \ud574\uc11c \ub9cc\ub4e4\uc5c8\ub294\ub370 \uc5ec\ub530 \uc62c\ub9b4\ub791\uaed8 \ucb48\uc6b1 \uc37c\uc2b5\ub2c8\ub2e4.<br \/>\n\uadf8\ub0e5 \uc2ec\uc2ec\ud574\uc11c \ub9cc\ub4e4\uc5b4 \ubd24\uc2b5\ub2c8\ub2e4.<br \/>\n\uae09\uc870 \ud55c\uae30\ub77c\uc11c \uc548\uc774\uc058\uac8c \ud588\uace0 \uc7a1\ud301\uc740 \ub354\ub354\uc6b1 \uc5c6\ub124\uc5ec ^^<br \/>\n\uadf8\ub0e5 \uc624\ub298\uc790 \uc544\uc774\ud2f0 \ub274\uc2a4\ub97c \uac00\uc838\uc624\ub294\uae30 \uc785\ub2c8\ub2e4.<\/p>\n<p>\uadf8\ub9ac\ub450 \uc774\uac70 \ud655\uc7a5\ud558\uba74 \uaf64 \uc4f8\ub9cc\ud560\ub08d\ub2c8\ub2e4.<br \/>\n\uc218\uc815 \ubd80\ubd84\uc788\uc74c \ub9d0\ud574 \uc8fc\uc0e4\uc694<\/p>\n<p><?\n\n\nfunction get($url){\/\/\ubb38\uc11c\uac00\uc838\uc62e<br \/>\n        $fp = fopen($url, &#8220;r&#8221;);<\/p>\n<p>        while(!feof($fp)){<br \/>\n                $tmp = fgets($fp, 1024); <br \/>\n                $temp .= $tmp;<br \/>\n        }<\/p>\n<p>fclose($fp); <\/p>\n<p>return $temp; <br \/>\n}\/\/function get<\/p>\n<p>function Strip($all){\/\/ \ub9c1\ud06c\ub791 \uc81c\ubaa9\ub9cc \ube7c\uc624\uae30<\/p>\n<p>        $link_pm=strpos($all,&#8221;>&#8221;);<\/p>\n<p>        $link=substr($all,0,$link_pm);<\/p>\n<p>        if(!$link) return;<\/p>\n<p>        if(ereg(&#8220;&#8221;&#8221;,$link)){<\/p>\n<p>                $link_p=strpos($link,&#8221;&#8221;&#8221;);<br \/>\n                $link=substr($link,$link_p+1);<br \/>\n                $link_p=strpos($link,&#8221;&#8221;&#8221;);<\/p>\n<p>                $link=substr($link,0,$link_p);<br \/>\n        }<\/p>\n<p>        if(ereg(&#8220;&#8216;&#8221;,$link)){<\/p>\n<p>                $link_p=strpos($link,&#8221;&#8216;&#8221;);<br \/>\n                $link=substr($link,$link_p+1);<br \/>\n                $link_p=strpos($link,&#8221;&#8216;&#8221;);<\/p>\n<p>                $link=substr($link,0,$link_p);<br \/>\n        }<\/p>\n<p>        $link=trim($link);<\/p>\n<p>        $substr=substr($all,$link_pm+1);<br \/>\n        $substr_p=strpos($substr,&#8221;<\/a>&#8220;);<br \/>\n        $substr=substr($substr,0,$substr_p);<br \/>\n        $strip=strip_tags($substr);<br \/>\n        $strip=trim($strip);<\/p>\n<p>        return array(link => $link, sub => $strip);<br \/>\n}\/\/function strip($all)<\/p>\n<p>function makeUrl($Url, $Link){<\/p>\n<p>        if(!strpos($Link,&#8221;http:\/\/&#8221;) &#038;&#038; substr_count(&#8220;$Link&#8221;,&#8221;http:\/\/&#8221;)) return $Link;<\/p>\n<p>        $eURL = pathinfo(&#8220;$Url&#8221;);<\/p>\n<p>        $host = parse_url($Url);<br \/>\n        $host = $host[scheme].&#8221;:\/\/&#8221;.$host[host];<\/p>\n<p>        $Link = &#8220;\/&#8221;.$Link;        \/\/\ub9c1\ud06c\uac00 \ub8e8\ud2b8\uc778\uc9c0 \ud655\uc778\uc704\ud574 \uc784\uc758\ub85c \ubd99\uc778\ub2e4.<br \/>\n        if(substr_count(&#8220;$Link&#8221;,&#8221;..\/&#8221;)){        \/\/\ud55c\uce78\uc55e\uc73c\ub85c<\/p>\n<p>                $Link = str_replace(&#8220;.\/..\/&#8221;, &#8220;&#8221;, $Link);<br \/>\n                $Link = str_replace(&#8220;..\/&#8221;, &#8220;&#8221;, $Link);<\/p>\n<p>                $pos = strrpos($eURL[&#8220;dirname&#8221;], &#8220;\/&#8221;);<br \/>\n                $makeUrl = substr($eURL[&#8220;dirname&#8221;],0,$pos);<\/p>\n<p>                $makeUrl = &#8220;$makeUrl&#8221;.&#8221;$Link&#8221;;<\/p>\n<p>        }else if(substr_count(&#8220;$Link&#8221;,&#8221;\/\/&#8221;) &#038;&#038; !strpos($Link, &#8220;\/\/&#8221;)){        \/\/\ub8e8\ud2b8\ub85c \uac00\ub77c<\/p>\n<p>                $makeUrl = $host.&#8221;\/&#8221;.str_replace(&#8220;\/\/&#8221;, &#8220;&#8221;, $Link);<\/p>\n<p>        }else{        \/\/\uc81c\uc790\ub9ac<\/p>\n<p>                $Link = str_replace(&#8220;.\/&#8221;, &#8220;&#8221;, $Link);<br \/>\n                $makeUrl = $eURL[&#8220;dirname&#8221;].&#8221;$Link&#8221;;<br \/>\n        }<\/p>\n<p>return $makeUrl;        <br \/>\n}<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ \ud391\uc158\ub05d<br \/>\n$date_Y = date(&#8220;Y&#8221;);<br \/>\n$date_M = date(&#8220;m&#8221;);<br \/>\n$date_D = date(&#8220;d&#8221;);<\/p>\n<p>$mdate = &#8220;$date_Y.$date_M.$date_D&#8221;; \/\/\ud655\uc7a5\uc131 \uc704\ud574 \uc774\ub974\ucf00<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<== \uc2e0\ubb38\uc0ac\ubcc4\uc124\uc815 \ucd94\uac00\uac00\ub2a5\n\n\n$newspaper[] = &#8220;\uc870\uc120\uc77c\ubcf4&#8221;;<br \/>\n$URL[] = &#8220;http:\/\/www.chosun.com\/it\/&#8221;;<br \/>\n$like[] = &#8220;$date_Y$date_M$date_D&#8221;;<\/p>\n<p>$newspaper[] = &#8220;\uc911\uc559\uc77c\ubcf4&#8221;;<br \/>\n$URL[] = &#8220;http:\/\/www.joins.com\/it\/list\/it_list.html&#8221;;<br \/>\n$like[] = &#8220;$date_Y$date_M$date_D&#8221;;<\/p>\n<p>$newspaper[] = &#8220;\ub3d9\uc544\uc77c\ubcf4&#8221;;<br \/>\n$URL[] = &#8220;http:\/\/www.donga.com\/fbin\/output?f=totalk&#038;code=k__&#8221;;<br \/>\n$like[] = &#8220;$date_Y$date_M$date_D&#8221;;<\/p>\n<p>\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<== \uc5ec\uadf8\uae4c\uc9c0 \uc2e0\ubb38\uc0ac\ubcc4\uc124\uc815\n\n\nfor($x=0; $x < sizeof($newspaper); $x++){\n\n\n        $temp = get($URL[$x]);\n\n\n        $all = split(&#8220;href =|HREF =|href=|HREF=&#8221;,$temp);\/\/&#8211;> url \ucd94\ucd9c<\/p>\n<p>        for($i=0; $i < sizeof($all); $i++){\n\n\n                $kisa =  Strip($all[$i]);\n\n\n                if(ereg($like[$x], $kisa[link]) &#038;&#038; 20 < strlen($kisa[sub])){\n\n\n                        $LinkURL = makeUrl($URL[$x], $kisa[link]);<br \/>\n                        echo &#8220;<br \/><a href='$LinkURL'>[$newspaper[$x]]$kisa[sub]<\/a><br \/>&#8220;;<br \/>\n                }\/\/if(ereg($like[$x], $kisa[link]) &#038;&#038; 20 < strlen($kisa[sub]))<br \/>\n        }\/\/for($i=0; $i < sizeof($all); $i++)<br \/>\n}\/\/for($x=0; $x < sizeof($newspaper); $x++)<br \/>\n?> <\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uac01 \uc2e0\ubb38\uc0ac\uc758 \ucd5c\uc2e0\uc544\uc774\ud2f0 \ub274\uc2a4\uac00\uc838 \uc624\uae30 \uc6d0\ub798\ub294 \ud654\uc77c \ubd84\ub9ac \ud574\uc11c \ub9cc\ub4e4\uc5c8\ub294\ub370 \uc5ec\ub530 \uc62c\ub9b4\ub791\uaed8 \ucb48\uc6b1 \uc37c\uc2b5\ub2c8\ub2e4. \uadf8\ub0e5 \uc2ec\uc2ec\ud574\uc11c \ub9cc\ub4e4\uc5b4 \ubd24\uc2b5\ub2c8\ub2e4. \uae09\uc870 \ud55c\uae30\ub77c\uc11c \uc548\uc774\uc058\uac8c \ud588\uace0 \uc7a1\ud301\uc740 \ub354\ub354\uc6b1 \uc5c6\ub124\uc5ec ^^ \uadf8\ub0e5 \uc624\ub298\uc790 \uc544\uc774\ud2f0 \ub274\uc2a4\ub97c \uac00\uc838\uc624\ub294\uae30 \uc785\ub2c8\ub2e4. \uadf8\ub9ac\ub450 \uc774\uac70 \ud655\uc7a5\ud558\uba74 \uaf64 \uc4f8\ub9cc\ud560\ub08d\ub2c8\ub2e4. \uc218\uc815 \ubd80\ubd84\uc788\uc74c \ub9d0\ud574 \uc8fc\uc0e4\uc694<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[51],"tags":[],"class_list":["post-656","post","type-post","status-publish","format-standard","hentry","category-papa-php"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=656"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/656\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}