{"id":675,"date":"2002-11-22T01:02:57","date_gmt":"2002-11-22T01:02:57","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=675"},"modified":"2002-11-22T01:02:57","modified_gmt":"2002-11-22T01:02:57","slug":"%ec%9c%a0%ec%9d%bc%ed%95%9c-%eb%9e%9c%eb%8d%a4%ea%b0%92-%eb%bd%91%ec%95%84%eb%82%b4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=675","title":{"rendered":"\uc720\uc77c\ud55c \ub79c\ub364\uac12 \ubf51\uc544\ub0b4\uae30"},"content":{"rendered":"<p>PHP\ub97c \uc2dc\uc791\ud55c\uc9c0\ub294 \uc774\uc81c \uaca8\uc6b0 \ud55c\ub2ec \uc815\ub3c4 \ub418\uc5b4\uac00\ub124\uc5ec&#8230;<br \/>\n\uc5ec\uae30\uc11c \ub9ce\uc740 \uc88b\uc740 \uc815\ubcf4\ub3c4 \uc5bb\uace0 \uac00\ub124\uc5ec&#8230;<\/p>\n<p>\uc720\uc77c\ud55c \ub79c\ub364\uac12 4\uac1c\ub97c \uad6c\ud558\ub824\uace0 \ucc3e\uc544\ubcf4\ub2c8 \ubc30\uc5f4\ub85c \ub123\uc740 \uc18c\uc2a4\ub3c4 \uc788\uace0&#8230;<br \/>\n\uc5ec\ub7ec\uac00\uc9c0 \ud615\ud0dc\uc758 \uc18c\uc2a4\uac00 \uc788\ub354\uad70\uc694&#8230;<\/p>\n<p>\ub79c\ub364\uac12\uc744 \uad6c\ud574\uc57c \ud558\ub294 \uc77c\uc774 \ubd80\ub2e5\uccd0\uc11c \ud55c\ubc88 \uace0\ubbfc\ud574\uc11c \ub9cc\ub4e4\uc5b4 \ubd24\uc2b5\ub2c8\ub2e4&#8230;<br \/>\n\uc218\uc815\ud560 \uacf3\uc774 \uc788\uc73c\uba74 \uc9c0\uc801 \ubd80\ud0c1\ub4dc\ub9bd\ub2c8\ub2e4&#8230;<\/p>\n<p><?<br \/>\n$aaa = 10;                 \/\/ \ubc94\uc704 \uc124\uc815\uc740 \uc774 \uac12\uc744 \ubcc0\uacbd<br \/>\n$i = 0;<\/p>\n<p>while ( true ) {<br \/>\n  srand((double)microtime()*1000000);<br \/>\n  $rnum = rand(1,$aaa);<\/p>\n<p>  if ($i == 0) {<br \/>\n    $rnumlist = $rnum;<br \/>\n  } else {<br \/>\n    if ( eregi( $rnum, $rnumlist ) == false ) {<br \/>\n      $rnumlist = $rnumlist.&#8221;,&#8221;.$rnum;<br \/>\n    }<br \/>\n  }<\/p>\n<p>  $arrtemp = split(&#8220;,&#8221;, $rnumlist);<\/p>\n<p>  if ( sizeof($arrtemp) == 4 ) {             \/\/ \uc720\uc77c\ud55c \uac12\uc744 \ubf51\uace0 \uc2f6\uc740 \uc218\ub97c \ube44\uad50&#8230;<br \/>\n    break;<br \/>\n  }<br \/>\n  $i++;<br \/>\n}<\/p>\n<p>echo $rnumlist;<br \/>\n?><\/p>\n<p>\ub2e4\ub978\uac83<\/p>\n<p>function getCode($len) {<br \/>\n$SID = md5(uniqid(rand()));<br \/>\n$code = substr($SID, 0, $len);<br \/>\nreturn $code;<br \/>\n} <\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\ub97c \uc2dc\uc791\ud55c\uc9c0\ub294 \uc774\uc81c \uaca8\uc6b0 \ud55c\ub2ec \uc815\ub3c4 \ub418\uc5b4\uac00\ub124\uc5ec&#8230; \uc5ec\uae30\uc11c \ub9ce\uc740 \uc88b\uc740 \uc815\ubcf4\ub3c4 \uc5bb\uace0 \uac00\ub124\uc5ec&#8230; \uc720\uc77c\ud55c \ub79c\ub364\uac12 4\uac1c\ub97c \uad6c\ud558\ub824\uace0 \ucc3e\uc544\ubcf4\ub2c8 \ubc30\uc5f4\ub85c \ub123\uc740 \uc18c\uc2a4\ub3c4 \uc788\uace0&#8230; \uc5ec\ub7ec\uac00\uc9c0 \ud615\ud0dc\uc758 \uc18c\uc2a4\uac00 \uc788\ub354\uad70\uc694&#8230; \ub79c\ub364\uac12\uc744 \uad6c\ud574\uc57c \ud558\ub294 \uc77c\uc774 \ubd80\ub2e5\uccd0\uc11c \ud55c\ubc88 \uace0\ubbfc\ud574\uc11c \ub9cc\ub4e4\uc5b4 \ubd24\uc2b5\ub2c8\ub2e4&#8230; \uc218\uc815\ud560 \uacf3\uc774 \uc788\uc73c\uba74 \uc9c0\uc801 \ubd80\ud0c1\ub4dc\ub9bd\ub2c8\ub2e4&#8230; \ub2e4\ub978\uac83 function getCode($len) { $SID = md5(uniqid(rand())); $code = substr($SID, 0, $len); return $code; }<\/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-675","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\/675","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=675"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/675\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}