{"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,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_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":744,"url":"https:\/\/sarang.inmu.net\/?p=744","url_meta":{"origin":584,"position":0},"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":1},"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":585,"url":"https:\/\/sarang.inmu.net\/?p=585","url_meta":{"origin":584,"position":2},"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":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":25,"url":"https:\/\/sarang.inmu.net\/?p=25","url_meta":{"origin":584,"position":4},"title":"\uac04\ub2e8\ud301 \ubaa8\uc74c","author":"sarang","date":"2016\ub144 01\uc6d4 30\uc77c","format":false,"excerpt":"\ud30c\uc77c \uac2f\uc218\uac00 \ub9ce\uc544\uc11c \uc9c0\uc6cc\uc9c0\uc9c0 \uc54a\uc744 \ub54c find . -name '*' -exec rm -f {}\\; \u00a0 utf-8\ub85c \uba54\uc77c \ubcf4\ub0b4\uae30 \uc608\uc81c $from_name=\"=?utf-8?B?\".base64_encode('\uba54\uc77c \uc81c\ubaa9').\"?=\"; $header=\"FROM: \".$from_name.\"\\nReturn-Path:sarang@inmu.net\\nX-Sender:sarang@inmu.net\\n'Content-Type: text\/html;charset=utf-8'\\n\"; $mail_subject='=?utf-8?B?'.base64_encode('\uba54\uc77c\uc81c\ubaa9').'?='; mail('\ubc1b\ub294\uc774\uba54\uc77c\uc8fc\uc18c',$mail_subject,'\uba54\uc77c \ubcf8\ubb38',$header); \u00a0 FTP \ub9c1\ud06c \ub9cc\ub4e4\uae30 ftp:\/\/myid:mypassword@sarang.inmu.net:21\/mydir\/myfile \uc704\uc758 \ub9c1\ud06c\ub294 21\ubc88 \ud3ec\ud2b8\ub85c FTP\uc11c\ubc84\uc5d0 \uc811\uc18d\ud558\uc5ec mydir\ud3f4\ub354\uc5d0\uc11c myfile\uc744 \ub2e4\uc6b4 \ubc1b\ub294 \ub9c1\ud06c\ub97c \ub9cc\ub4e0\ub2e4. a \ud0dc\uadf8\uc5d0 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4. \uc774\ud074\ub9bd\uc2a4\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":1379,"url":"https:\/\/sarang.inmu.net\/?p=1379","url_meta":{"origin":584,"position":5},"title":"http -> https \uadf8\ub9ac\uace0 let&#8217;s encrypt","author":"sarang","date":"2020\ub144 05\uc6d4 27\uc77c","format":"image","excerpt":"\ucd5c\uadfc \uc6f9\uc5d0\uc11c http \ud504\ub85c\ud1a0\ucf5c \ub300\uc2e0\uc5d0 https\ub97c \ub9ce\uc774 \uc4f4\ub2e4. \ubcf4\uc548\uc774 \ub41c\ub2e4\ub294 \uc774\uc720\uc774\uba70 \ubb34\uc5c7\ubcf4\ub2e4 \uac80\uc0c9\ud3ec\ud138\uc5d0\uc11c \ub178\ucd9c \uc6b0\uc120\uc21c\uc704\ub97c \ub192\uac8c \uccd0\uc900\ub2e4. \ud2b9\ud788 \uad6c\uae00. \uc0ac\uc2e4 \ubcf4\uc548\uc801\uc778 \uce21\uba74\uc5d0\uc11c\ub294 \uc798 \ubaa8\ub974\uaca0\ub2e4. \uc88b\ub2e4\ub2c8\uae4c \uc88b\uc740\uac11\ub2e4 \ud558\ub294 \uac83\uc774\ub2e4. \uc5b4\ub290 \ub3c4\ub451\ub188\uc774 \uc6b0\ub9ac\uc9d1\uc744 \ucc0d\uc5b4 \ub193\uace0 \ud138\ub824\uace0 \ub9c8\uc74c\uc744 \uba39\uc5c8\ub294\ub370 \uc548\ud138\ub9b4 \uc7ac\uac04\uc774 \uc5c6\ub2e4. \ud2b9\ud788 \ube44\uc2fc \uac83\ub4e4\uc744 \uc7c1\uc5ec \ub193\uace0 \uc788\ub294 \uc9d1\uc774\ub77c\uba74 \uace0\uae09\uae30\uc220\uc744 \uac16\uace0 \uc788\ub294 \ub3c4\ub451\ub4e4\uc774\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":"https:\/\/i0.wp.com\/sarang.inmu.net\/wp-content\/uploads\/2020\/05\/200527_001.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"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}]}}