{"id":584,"date":"2016-11-21T17:50:01","date_gmt":"2016-11-21T08:50:01","guid":{"rendered":"http:\/\/sarang.inmu.net\/?p=584"},"modified":"2016-11-21T17:50:01","modified_gmt":"2016-11-21T08:50:01","slug":"php%eb%a1%9c-%ea%b0%84%eb%8b%a8%ed%95%98%ea%b2%8c-%eb%94%94%eb%a0%89%ed%86%a0%eb%a6%ac%ec%99%80-%ed%8c%8c%ec%9d%bc-%eb%8b%a4%eb%a3%a8%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/sarang.inmu.net\/?p=584","title":{"rendered":"php\ub85c \uac04\ub2e8\ud558\uac8c \ub514\ub809\ud1a0\ub9ac\uc640 \ud30c\uc77c \ub2e4\ub8e8\uae30"},"content":{"rendered":"<p>&lt;?php<br \/>\nif($handle = opendir(&#8216;.&#8217;)){<br \/>\n$i = 0;<br \/>\nwhile(false !==($entry = readdir($handle))){<br \/>\nif($entry != &#8216;.&#8217; &amp;&amp; $entry != &#8216;..&#8217; &amp;&amp; $entry != &#8216;this_file.php&#8217;){<br \/>\n$i ++;<br \/>\n$tno = explode(&#8220;.&#8221;,$entry);<br \/>\n$no = $tno[0];<br \/>\n$html = &#8220;\uc5ec\uae30\uc5d0 \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc744 \ub123\ub294\ub2e4. \ud30c\uc77c\uc758 \uc774\ub984\uc774 \ud544\uc694\ud558\ub2e4\uba74 $no \ubc30\uc5f4\uc744 \uc0ac\uc6a9\ud558\uc790.&#8221;;<br \/>\n$fp=fopen($entry, &#8220;w+&#8221;);<br \/>\nfputs($fp,$html);<br \/>\nfclose($fp);<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;?php if($handle = opendir(&#8216;.&#8217;)){ $i = 0; while(false !==($entry = readdir($handle))){ if($entry != &#8216;.&#8217; &amp;&amp; $entry != &#8216;..&#8217; &amp;&amp; $entry != &#8216;this_file.php&#8217;){ $i ++; $tno = explode(&#8220;.&#8221;,$entry); $no = $tno[0]; $html = &#8220;\uc5ec\uae30\uc5d0 \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc744 \ub123\ub294\ub2e4. \ud30c\uc77c\uc758 \uc774\ub984\uc774 \ud544\uc694\ud558\ub2e4\uba74 $no \ubc30\uc5f4\uc744 \uc0ac\uc6a9\ud558\uc790.&#8221;; $fp=fopen($entry, &#8220;w+&#8221;); fputs($fp,$html); fclose($fp); } } } &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1,5],"tags":[],"class_list":["post-584","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-5"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":585,"url":"https:\/\/sarang.inmu.net\/?p=585","url_meta":{"origin":584,"position":0},"title":"\ud3fc\uc5d0\uc11c input file \ub514\uc790\uc778\ud558\uae30","author":"sarang","date":"2016\ub144 07\uc6d4 24\uc77c","format":false,"excerpt":"\ud3fc\uc744 \ub514\uc790\uc778\ud558\uba74\uc11c input type=file \uc77c\ub54c \ub514\uc790\uc778\ud558\ub294 \ubc29\ubc95\uc774\ub2e4. jquery\ub97c \uc0ac\uc6a9\ud55c\ub2e4. \uc608\uc81c1) HTML \ucf54\ub4dc <input type=\"file\" name=\"client_file\" id=\"index_image\" placeholder=\"\uc774 \uacf3\uc5d0 \uc774\ubbf8\uc9c0 \ud30c\uc77c\uc744 \uc785\ub825\ud558\uc138\uc694\" \/> <label for=\"index_image\">\uc774 \uacf3\uc5d0\uc11c \uc774\ubbf8\uc9c0 \ud30c\uc77c\uc744 \uc120\ud0dd\ud558\uc138\uc694.<\/label> CSS \ucf54\ub4dc label { display: inline-block; width: 5em; padding: 0 1em; text-align: right; } \/* Hide the file input using opacity \/\u2026","rel":"","context":"&quot;\ucef4\ud4e8\ud130&quot;\uc5d0\uc11c","block_context":{"text":"\ucef4\ud4e8\ud130","link":"https:\/\/sarang.inmu.net\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":744,"url":"https:\/\/sarang.inmu.net\/?p=744","url_meta":{"origin":584,"position":1},"title":"CSS \ud639\uc740 JS \ud30c\uc77c\uc758 \uce90\uc2dc","author":"sarang","date":"2017\ub144 01\uc6d4 10\uc77c","format":false,"excerpt":"\ud648\ud398\uc774\uc9c0\ub97c \uac1c\ubc1c \ud560 \ub54c CSS, \ud639\uc740 JS\ud30c\uc77c\uc744 \uc678\ubd80\uc5d0 \ub450\uace0 \uc0ac\uc6a9\ud560 \ub54c\uac00 \ub9ce\uc774 \uc788\ub2e4. HTML\uc740 \uc218\uc815\ud560 \ub54c \uc989\uc2dc \ubc18\uc601\uc774 \ub418\uc9c0\ub9cc \uc678\ubd80\uc5d0 \uc788\ub294 \uc800\ub7f0 \ud30c\uc77c\ub4e4\uc740 \uce90\uc2dc \ub54c\ubb38\uc5d0 \uc989\uc2dc \ubc18\uc601\uc774 \ub418\uc9c0 \uc54a\uace0 CTRL + SHIFT + R \ud0a4\ub97c \ub20c\ub7ec\uc11c \ube0c\ub77c\uc6b0\uc800\ub97c \uc644\uc804 \uc0c8\ub85c \uace0\uce68\ud574\uc57c \ub41c\ub2e4. \uac1c\ubc1c\ud558\ub294 \uc0ac\ub78c\uc774\uc57c \uc704\uc758 \ud0a4\ub97c \ub20c\ub7ec\uc11c \uc0c8\ub85c\uace0\uce68 \ud55c\ub2e4\uc9c0\ub9cc \uae30\uc874\uc5d0 \ud648\ud398\uc774\uc9c0\ub97c\u2026","rel":"","context":"&quot;\ucef4\ud4e8\ud130&quot;\uc5d0\uc11c","block_context":{"text":"\ucef4\ud4e8\ud130","link":"https:\/\/sarang.inmu.net\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":583,"url":"https:\/\/sarang.inmu.net\/?p=583","url_meta":{"origin":584,"position":2},"title":"Centos7 \uc124\uce58 \ud6c4 \uc544\ud30c\uce58\uc640 php7 \uc124\uce58","author":"sarang","date":"2016\ub144 09\uc6d4 02\uc77c","format":false,"excerpt":"Centos 7\uc744 \uc77c\ub2e8 \uc124\uce58\ud55c\ub2e4. \uc124\uce58\ud560 \ub54c \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uc120\ud0dd\uc5d0\uc11c \ucd5c\uc18c\uc124\uce58\ub098 \ub370\uc2a4\ud06c\ud0d1 \uc124\uce58\ub97c \uc120\ud0dd\ud558\ub294\ub370 \ub098\ub294 \ubcf4\ud1b5 \"\ub370\uc2a4\ud2b8\ud0d1\"\uc744 \uc120\ud0dd\ud558\uc5ec \uc124\uce58\ud55c\ub2e4. \uadf8\ub7ec\ub098 \uc11c\ubc84\ub97c PC\uc6a9\ub3c4\ub85c \uc0ac\uc6a9\ud558\uc9c0 \uc54a\uace0 \uc624\uc9c1 \uc11c\ubc84 \ubcf8\uc5f0\uc758 \uc6a9\ub3c4\ub85c\ub9cc \uc0ac\uc6a9\ud55c\ub2e4\uba74 \ucd5c\uc18c\uc124\uce58\ub97c \uc120\ud0dd\ud55c\ub2e4. \uadf8\ub9ac\uace0 \uc544\ub798\uc758 \ub9c1\ud06c\uc5d0 \ub530\ub77c\uc11c httpd\uc640 php7\uc744 \uc124\uce58\ud55c\ub2e4. https:\/\/webtatic.com\/packages\/php70\/ \uac04\ub2e8\ud558\uac8c \uc694\uc57d\ud558\uba74 \uc774\ub807\ub2e4. \ub8e8\ud2b8\ub85c \ub85c\uadf8\uc778\ud558\uc5ec \uc544\ub798\uc758 \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud55c\ub2e4. #rpm -Uvh https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm #rpm -Uvh\u2026","rel":"","context":"&quot;\ucef4\ud4e8\ud130&quot;\uc5d0\uc11c","block_context":{"text":"\ucef4\ud4e8\ud130","link":"https:\/\/sarang.inmu.net\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":902,"url":"https:\/\/sarang.inmu.net\/?p=902","url_meta":{"origin":584,"position":3},"title":"ajax\ub97c \uc0ac\uc6a9\ud574\uc11c \uc11c\ubc84\uc758 \uc2dc\uac04\uc744 \ubcf4\uc5ec \uc8fc\uae30","author":"sarang","date":"2017\ub144 12\uc6d4 16\uc77c","format":false,"excerpt":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\uc5d0\uc11c setInterval() \uc744 \uc774\uc6a9\ud558\uba74 \uc9c0\uc815\ud55c \ubc00\ub9ac\uc138\ucee8\ub4dc \ub2e8\uc704\ub85c \ubb34\uc5b8\uac00\ub97c \uc2e4\ud589\ud560 \uc218 \uc788\ub2e4. \uc774 \ud568\uc218\uc5d0 ajax\ub97c \ub123\uc5b4\uc11c 1\ucd08\uc5d0 \ud55c\ubc88 \uc529 \uc2e4\ud589\ub418\uac8c \ud55c\ub2e4\uba74 \uc11c\ubc84\uc758 \uc2dc\uac04\uc744 \ube0c\ub77c\uc6b0\uc800\ub85c \ubcf4\ub0bc \uc218 \uc788\ub2e4. \uc11c\ubc84\uc5d0\uc11c \ud560 \uc77c\uc740 php\uc758 date()\ud568\uc218\uc640 time() \ud568\uc218\ub97c \uc774\uc6a9\ud574\uc11c \uc2e4\uc2dc\uac04\uc744 echo\ud558\uba74 \ub41c\ub2e4. \uc774 \uc608\uc81c\uc5d0\uc11c\ub294 util.php?mode=nowTime \ub9c1\ud06c\uc5d0\uc11c \uad6c\ud604\ud558\uc600\ub2e4. util.php \uc758 \ucf54\ub4dc \ub0b4\uc6a9\uc740 \uc544\ub798\uc640 \uac19\ub2e4. <?php $mode\u2026","rel":"","context":"&quot;\ucef4\ud4e8\ud130&quot;\uc5d0\uc11c","block_context":{"text":"\ucef4\ud4e8\ud130","link":"https:\/\/sarang.inmu.net\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":580,"url":"https:\/\/sarang.inmu.net\/?p=580","url_meta":{"origin":584,"position":4},"title":"\ub9ac\ub205\uc2a4\uc5d0\uc11c \ud2b9\uc815 \ud30c\uc77c \ucc3e\uc544\uc11c \uc9c0\uc6b0\uae30","author":"sarang","date":"2016\ub144 07\uc6d4 03\uc77c","format":false,"excerpt":"# find \/ -name *.\ud655\uc7a5\uc790 -exec rm -f {} \\; \uc704\uc758 \uba85\ub839\uc5b4\ub97c \uac04\ub2e8\ud558\uac8c \uc124\uba85\ud558\uba74 find\ub294 \ucc3e\ub294 \ub2e4\ub294 \uc758\ubbf8\uc774\ub2e4. \uc0ac\uc804\uc5d0\ub3c4 \uadf8\ub807\uac8c \ub098\uc640 \uc788\ub2e4. \/ \ub294 \ub8e8\ud2b8\ubd80\ud130 \ud558\uc704\uc758 \ubaa8\ub4e0 \ub514\ub809\ud1a0\ub9ac\ub97c \ucc3e\uaca0\ub2e4\ub294 \ub73b \ud2b9\uc815 \ub514\ub809\ud1a0\ub9ac \uba85\uc744 \uc368\uc8fc\uba74 \uc544\ub9c8 \uac70\uae30\uc11c \ubd80\ud130 \ud558\uc704 \ub514\ub809\ud1a0\ub9ac\ub97c \ucc3e\uc744 \uac83\uc774\ub2e4. *.\ud655\uc7a5\uc790 \ub294 \ud30c\uc77c\uc774\ub984 \ub9d0\uace0 \ud2b9\uc815 \ud655\uc7a5\uc790\ub97c \uac16\uace0 \uc788\ub294 \ubaa8\ub4e0\u2026","rel":"","context":"&quot;\ucef4\ud4e8\ud130&quot;\uc5d0\uc11c","block_context":{"text":"\ucef4\ud4e8\ud130","link":"https:\/\/sarang.inmu.net\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1337,"url":"https:\/\/sarang.inmu.net\/?p=1337","url_meta":{"origin":584,"position":5},"title":"\ub124\uc774\ubc84 \uc6e8\uc77c\uc744 centos7\uc5d0 \uc124\uce58\ud588\ub2e4","author":"sarang","date":"2020\ub144 04\uc6d4 22\uc77c","format":false,"excerpt":"centos 7\uc5d0 \ub124\uc774\ubc84 \uc6e8\uc77c\ube0c\ub77c\uc6b0\uc800\ub97c \uc124\uce58\ud558\ub294 \ubc29\ubc95","rel":"","context":"&quot;\ucef4\ud4e8\ud130&quot;\uc5d0\uc11c","block_context":{"text":"\ucef4\ud4e8\ud130","link":"https:\/\/sarang.inmu.net\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/p7qW60-9q","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=\/wp\/v2\/posts\/584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=584"}],"version-history":[{"count":1,"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=\/wp\/v2\/posts\/584\/revisions"}],"predecessor-version":[{"id":672,"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=\/wp\/v2\/posts\/584\/revisions\/672"}],"wp:attachment":[{"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}