{"id":1231,"date":"2004-05-17T01:30:07","date_gmt":"2004-05-17T01:30:07","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=1231"},"modified":"2004-05-17T01:30:07","modified_gmt":"2004-05-17T01:30:07","slug":"php-%ec%9d%8c%ec%95%85-%ea%b0%90%ec%83%81%ec%8b%a4-%ec%9e%90%eb%8f%99%ec%9c%bc%eb%a1%9c-%ec%9d%8c%ec%95%85%ec%9d%b4-%eb%b0%94%eb%80%9d%eb%8b%88%eb%8b%a4","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=1231","title":{"rendered":"PHP \uc74c\uc545 \uac10\uc0c1\uc2e4 &#8211; \uc790\ub3d9\uc73c\ub85c \uc74c\uc545\uc774 \ubc14\ub01d\ub2c8\ub2e4."},"content":{"rendered":"<p>bgmusic.php \ud30c\uc77c\uacfc music \ud3f4\ub354\ub97c \ub9cc\ub4ed\ub2c8\ub2e4.<br \/>\n\uc774 \ub450\uac1c\ub97c FTP\ub97c \uc774\uc6a9\ud574 \uc11c\ubc84\ub85c \uc804\uc1a1\ud569\ub2c8\ub2e4. <br \/>\n\uadf8\ub9ac\uace0 MP3 \uc74c\uc545 \ud30c\uc77c\ub4e4\uc744 music \ud3f4\ub354 \uc548\uc5d0 \uc804\uc1a1\ud569\ub2c8\ub2e4. <\/p>\n<p>\uc74c\uc545 \uc7ac\uc0dd\uc740 \uc544\ub798 \uc8fc\uc18c \ud615\uc2dd\uc73c\ub85c \ud504\ub798\uc784\uc744 \uc0ac\uc6a9\ud574 \ub9c1\ud06c\ub97c \uac78\uc5b4\uc8fc\uba74 \uc790\ub3d9\uc73c\ub85c \uc7ac\uc0dd\ub429\ub2c8\ub2e4. <br \/>\n\ub178\ub798\ub294 \ud55c \uace1\uc774 \ub05d\ub098\uba74 \uc790\ub3d9\uc73c\ub85c \ub2e4\uc74c\uace1\uc774 \uc7ac\uc0dd\ub418\uba70 \ub178\ub798 \uc21c\uc11c\ub294 \ubb34\uc791\uc704\ub85c \uc120\ud0dd\ub429\ub2c8\ub2e4. <\/p>\n<p>\ub9c1\ud06c\uac78\uae30 (\uc608) http:\/\/\ud648\ud398\uc774\uc9c0\uc8fc\uc18c\/bgmusic.php<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n\uc544\ub798\ub294 bgmusic.php \uc18c\uc2a4<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n<? <br \/>\n$f_cnt=0; \/\/ \uace1 \uc218\ub97c \uc138\uae30 \uc704\ud55c \ubcc0\uc218\uc785\ub2c8\ub2e4.<\/p>\n<p>$dir_hnd = opendir(&#8220;.\/music&#8221;); \/\/ music \ud3f4\ub354\ub97c \uc561\uc138\uc2a4 \ud560\uc218 \uc788\uac8c \uc5fd\ub2c8\ub2e4.<\/p>\n<p>while ($f_name = readdir($dir_hnd)) \/\/ \ub178\ub798 \ud30c\uc77c \uc774\ub984\ub4e4\uc744 \uc77d\uc5b4 \ub4e4\uc785\ub2c8\ub2e4.<br \/>\n{<br \/>\nif( !is_dir($f_name) ) $m_name[$f_cnt++] = $f_name; \/\/ \ub178\ub798 \ud30c\uc77c \uc774\ub984\ub4e4\uc744 \ubc30\uc5f4\uc5d0 \uc800\uc7a5\ud569\ub2c8\ub2e4.<br \/>\n}<\/p>\n<p>$m_select = rand() % $f_cnt; \/\/ \uc784\uc758\uc758 \uace1\uc744 \uc120\ud0dd\ud558\uae30 \uc704\ud574 \ub09c\uc218\ub97c \ub178\ub798 \uace1\uc218\ub85c \ub098\ub208 \ub098\uba38\uc9c0\ub97c \uad6c\ud569\ub2c8\ub2e4.<br \/>\n?><br \/>\n<html><br \/>\n<head><br \/>\n<title>\ubc30\uacbd\uc74c\uc545<\/title><br \/>\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=euc-kr\"><\/p>\n<p><!-- \uc774\ubd80\ubd84\uc740 \ub178\ub798\uac00 \ub05d\ub098\uba74 \ub2e4\ub978 \ub178\ub798\ub85c \uc804\ud658\uc2dc\ucf1c \uc8fc\ub294 \uc790\ubc14 \uc2a4\ud06c\ub9bd\ud2b8 \uc785\ub2c8\ub2e4. --><br \/>\n<SCRIPT event=\"EndOfStream\" for=\"bgm\" language=\"javascript\"><br \/>\nlocation.href=&#8221;.\/bgmusic.php&#8221;;<br \/>\n<\/script><\/p>\n<p><\/head><br \/>\n<body><br \/>\n<!-- \ub09c\uc218\ub85c \uc120\ud0dd\ub41c \ub178\ub798\ub97c \uc7ac\uc0dd\uc2dc\ucf1c \uc8fc\ub294 \ubd80\ubd84\uc785\ub2c8\ub2e4. --><br \/>\n<embed src=\".\/music\/<?=$m_name[$m_select]?>&#8221; autostart=&#8221;true&#8221; hidden=&#8221;true&#8221; loop=&#8221;0&#8243; id=&#8221;bgm&#8221;><\/p>\n<p><!-- \uc544\ub798 \/\/ \ub97c \uc81c\uac70\ud558\uc2dc\uba74 \ub178\ub798 \ubaa9\ub85d\uc744 \ud654\uba74\uc73c\ub85c \ud655\uc778 \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. --><br \/>\n<?<br \/>\n\/\/ echo &#8220;<b>&#8220;.$m_select.&#8221;  &#8220;.$m_name[$m_select].&#8221;<\/b><\/p>\n<p>&#8220;;<br \/>\n\/\/ for($i=0; $i < $f_cnt; $i++) <br \/>\n\/\/ echo $m_name[$i].&#8221;<br \/>&#8220;;<br \/>\n?><\/p>\n<p><\/body><br \/>\n<\/html><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>bgmusic.php \ud30c\uc77c\uacfc music \ud3f4\ub354\ub97c \ub9cc\ub4ed\ub2c8\ub2e4. \uc774 \ub450\uac1c\ub97c FTP\ub97c \uc774\uc6a9\ud574 \uc11c\ubc84\ub85c \uc804\uc1a1\ud569\ub2c8\ub2e4. \uadf8\ub9ac\uace0 MP3 \uc74c\uc545 \ud30c\uc77c\ub4e4\uc744 music \ud3f4\ub354 \uc548\uc5d0 \uc804\uc1a1\ud569\ub2c8\ub2e4. \uc74c\uc545 \uc7ac\uc0dd\uc740 \uc544\ub798 \uc8fc\uc18c \ud615\uc2dd\uc73c\ub85c \ud504\ub798\uc784\uc744 \uc0ac\uc6a9\ud574 \ub9c1\ud06c\ub97c \uac78\uc5b4\uc8fc\uba74 \uc790\ub3d9\uc73c\ub85c \uc7ac\uc0dd\ub429\ub2c8\ub2e4. \ub178\ub798\ub294 \ud55c \uace1\uc774 \ub05d\ub098\uba74 \uc790\ub3d9\uc73c\ub85c \ub2e4\uc74c\uace1\uc774 \uc7ac\uc0dd\ub418\uba70 \ub178\ub798 \uc21c\uc11c\ub294 \ubb34\uc791\uc704\ub85c \uc120\ud0dd\ub429\ub2c8\ub2e4. \ub9c1\ud06c\uac78\uae30 (\uc608) http:\/\/\ud648\ud398\uc774\uc9c0\uc8fc\uc18c\/bgmusic.php &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- \uc544\ub798\ub294 bgmusic.php \uc18c\uc2a4 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- \ubc30\uacbd\uc74c\uc545<\/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-1231","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\/1231","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=1231"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/1231\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}