{"id":238,"date":"2002-06-29T01:02:23","date_gmt":"2002-06-29T01:02:23","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=238"},"modified":"2002-06-29T01:02:23","modified_gmt":"2002-06-29T01:02:23","slug":"%ed%8a%b9%ec%a0%95-%ec%9b%b9%ed%8e%98%ec%9d%b4%ec%a7%80%ec%97%90%ec%84%9c-%ec%9b%90%ed%95%98%eb%8a%94-%eb%b6%80%eb%b6%84%eb%a7%8c-%eb%bd%91%ec%95%84%ec%98%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=238","title":{"rendered":"\ud2b9\uc815 \uc6f9\ud398\uc774\uc9c0\uc5d0\uc11c \uc6d0\ud558\ub294 \ubd80\ubd84\ub9cc \ubf51\uc544\uc624\uae30"},"content":{"rendered":"<p><?<br \/>\n\/*<br \/>\n\ud2b9\uc815 \uc6f9\ud398\uc774\uc9c0\uc5d0\uc11c \uc6d0\ud558\ub294 \ubd80\ubd84\ub9cc \ubf51\uc544 \uc624\uace0 \uc2f6\ub2e4\uba74..<\/p>\n<p>By OkStart 2002-01-24<br \/>\nhttp:\/\/phptip.pro-style.org<\/p>\n<p>\uc774 \uc18c\uc2a4\ub294 http:\/\/education.altavista.co.kr\/translation\/ \uc5d0\uc11c \ubb38\uc790 \ubc88\uc5ed \ub41c \ubd80\ubd84\uc744 \ubf51\uc544\uc624\ub294 \ud504\ub85c\uadf8\ub7a8 \uc785\ub2c8\ub2e4.<br \/>\n\uac04\ub2e8\ud558\uac8c.. <textarea><\/textarea> \uc18d\uc5d0 \uc788\ub294 \ubd80\ubd84\ub9cc \ubf51\uc544 \uc624\ub294 \uac83\uc774\ub2c8<br \/>\n\ubf51\uace0\uc790 \ud558\ub294 \uc6f9\ud398\uc774\uc9c0\uc758 HTML \ub9cc \ud30c\uc545 \uc798 \ud558\uc2e0\ub2e4\uba74 \uc751\uc6a9\uc774 \uac00\ub2a5\ud560\ub4ef \uc2f6\uc2b5\ub2c8\ub2e4.<br \/>\n\uc218\uace0 \ud558\uc138\uc5fc..<br \/>\n*\/<\/p>\n<p>\/\/ set_time_limit(0);<\/p>\n<p>function Error_str($str, $color)<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p align=center><FONT COLOR='\" . $color . \"'>&#8221; . $str . &#8220;<\/FONT><\/p>\n<p>\n&#8220;;<br \/>\nexit;<br \/>\n}<\/p>\n<p>function pullpage($host, $url, $post_text)<br \/>\n{<br \/>\nif(!($fp = @fsockopen($host, 80, &#038;$errno, &#038;$errstr, 3)))<br \/>\n{<br \/>\nError_str(&#8220;[\uc18c\ucf13 \uc5d0\ub7ec ( &#8221; . $errno . &#8221; : &#8221; . $errstr . &#8221; ) ] &#8211; &#8221; . $host . &#8220;:&#8221; . $port, &#8220;red&#8221;);<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\n@fputs($fp, &#8220;POST &#8221; . $url . &#8221; HTTP\/1.0<br \/>\nHost: $host<br \/>\nUser-Agent: OkStart<br \/>\nAccept: text\/html<br \/>\nContent-length: &#8221; . strlen( $post_text ) . &#8220;<\/p>\n<p>&#8221; . $post_text . &#8220;<br \/>\n&#8220;);<br \/>\nwhile(!@feof($fp)) $output .= @fgets( $fp, 1024 ); <br \/>\n@fclose( $fp );<br \/>\nreturn $output;<br \/>\n}<br \/>\n}<\/p>\n<p>function html_form()<br \/>\n{<br \/>\necho &#8220;<TABLE ALIGN=CENTER><FORM METHOD=POST ACTION='\" . $PHP_SELF . \"'><INPUT TYPE='hidden' name='act' value='trans'><TR><TD><textarea name='text' cols=50 rows=7><\/textarea><br \/>ex). i&#8217;m a boy<\/TD><\/TR><TR><TD><INPUT TYPE='submit' value='\ubc88\uc5ed\ud558\uc790'><\/TD><\/TR><\/FORM><\/TABLE><br \/>\n&#8220;;<br \/>\n}<\/p>\n<p>function trans($text)<br \/>\n{<br \/>\n$output = &#8220;&#8221;;<br \/>\n$output = pullpage(&#8220;education.altavista.co.kr&#8221;, &#8220;\/cgi-bin-trans\/trtxt.cgi&#8221;, &#8220;dic=4&#038;contents=&#8221; . $text);<br \/>\n$output = substr($output, strpos($output, &#8216;(242,243,251)&#8221;>&#8217;)+15 );<br \/>\n$output = substr($output, 0, strpos($output, &#8216;<\/textarea>&#8216;) );<br \/>\nreturn $output;<br \/>\n}<\/p>\n<p>html_form();<\/p>\n<p>if( $act == &#8220;trans&#8221; )<br \/>\n{<br \/>\nif( !empty($text) ) $text = htmlspecialchars(stripslashes($text));<br \/>\necho &#8220;\uc6d0\ubcf8<br \/><Br><br \/>\n&#8220;;<br \/>\necho nl2br($text);<br \/>\n$output = trans($text);<br \/>\necho &#8220;<br \/><Br>\ubc88\uc5ed\ubcf8<\/p>\n<p>\n&#8220;;<br \/>\necho nl2br($output);<br \/>\n}<br \/>\n?><\/p>\n","protected":false},"excerpt":{"rendered":"","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-238","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\/238","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=238"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/238\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}