{"id":1391,"date":"2020-05-28T22:10:22","date_gmt":"2020-05-28T13:10:22","guid":{"rendered":"https:\/\/sarang.inmu.net\/?p=1391"},"modified":"2020-05-28T22:10:24","modified_gmt":"2020-05-28T13:10:24","slug":"php-%eb%ac%b8%ec%9e%90%ec%97%b4%ec%97%90%ec%84%9c-http-%eb%a5%bc-%ec%b0%be%ec%95%84-%eb%b0%94%ea%be%b8%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/sarang.inmu.net\/?p=1391","title":{"rendered":"[php] \ubb38\uc790\uc5f4\uc5d0\uc11c http:\/\/\ub97c \ucc3e\uc544 \ubc14\uafb8\uae30"},"content":{"rendered":"\n<p>\ubcf4\ud1b5 \uc774\ubbf8\uc9c0 \ud0dc\uadf8\ub098 link\ud0dc\uadf8 \ud639\uc740 script \ud0dc\uadf8\ub97c \ud1b5\ud574\uc11c \uc678\ubd80\uc5d0 \uc788\ub294 \uc774\ubbf8\uc9c0\ub098 \ucf54\ub4dc\ub97c \ubd88\ub7ec \uc628\ub2e4 \uc608\ub97c \ub4e4\uc5b4 \uc774\ubbf8\uc9c0\ub97c \ubd88\ub7ec \uc62c \ub54c\ub294 \uc544\ub798\uc640 \uac19\uc740 \ud0dc\uadf8\ub97c \uc0ac\uc6a9\ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;img src=\"http:\/\/img.cancerline.co.kr\/darma\/190711_001.jpg\" \/><\/code><\/pre>\n\n\n\n<p>\uadf8\ub807\uc9c0\ub9cc \ucd5c\uadfc\uc5d0\ub294 http:\/\/ \uc640\uac19\uc774 \ud504\ub85c\ud1a0\ucf5c\uc744 \uc4f0\uc9c0 \uc54a\uace0 \uadf8\ub0e5 &#8220;\/\/&#8221;\ub9cc \uc0ac\uc6a9\ud558\ub294 \ucd94\uc138\uc774\ub2e4. \uadf8\ub807\uc9c0\ub9cc \uc608\uc804\uc5d0 DB\uc5d0 \uc800\uc7a5\ud55c \ub0b4\uc6a9\uc5d0\uc11c \ubaa8\ub450 \ubc14\uafb8\uc790\ub2c8 \uc77c\uc774 \ub108\ubb34 \ub9ce\ub2e4. \uadf8\ub0e5 &#8220;http:\/\/&#8221;\ub97c &#8220;\/\/&#8221;\ub85c \ubc14\uafb8\uc790 \uc544\ub798\uc5d0 php\ub85c \ub41c \ucf54\ub4dc\uac00 \uc788\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$http = '\uc5b4\uca4c\uad6c \uc800\uca4c\uad6c http:\/\/~~ \uc5b4\uca4c\uad6c \uc800\uca4c\uad6c~~';\n$remove_http = preg_replace('\/(http:\\\/\\\/)\/','\/\/',$http);\n\necho $remove_http;<\/code><\/pre>\n\n\n\n<p>\uc774\uc81c \uc704\uc758 \ucf54\ub4dc\ub97c \ud1b5\ud574\uc11c &#8220;http:\/\/&#8221;\ub294 &#8220;\/\/&#8221;\ub85c \ubc14\ub00c\uc5c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ubcf4\ud1b5 \uc774\ubbf8\uc9c0 \ud0dc\uadf8\ub098 link\ud0dc\uadf8 \ud639\uc740 script \ud0dc\uadf8\ub97c \ud1b5\ud574\uc11c \uc678\ubd80\uc5d0 \uc788\ub294 \uc774\ubbf8\uc9c0\ub098 \ucf54\ub4dc\ub97c \ubd88\ub7ec \uc628\ub2e4 \uc608\ub97c \ub4e4\uc5b4 \uc774\ubbf8\uc9c0\ub97c \ubd88\ub7ec \uc62c \ub54c\ub294 \uc544\ub798\uc640 \uac19\uc740 \ud0dc\uadf8\ub97c \uc0ac\uc6a9\ud55c\ub2e4. \uadf8\ub807\uc9c0\ub9cc \ucd5c\uadfc\uc5d0\ub294 http:\/\/ \uc640\uac19\uc774 \ud504\ub85c\ud1a0\ucf5c\uc744 \uc4f0\uc9c0 \uc54a\uace0 \uadf8\ub0e5 &#8220;\/\/&#8221;\ub9cc \uc0ac\uc6a9\ud558\ub294 \ucd94\uc138\uc774\ub2e4. \uadf8\ub807\uc9c0\ub9cc \uc608\uc804\uc5d0 DB\uc5d0 \uc800\uc7a5\ud55c \ub0b4\uc6a9\uc5d0\uc11c \ubaa8\ub450 \ubc14\uafb8\uc790\ub2c8 \uc77c\uc774 \ub108\ubb34 \ub9ce\ub2e4. \uadf8\ub0e5 &#8220;http:\/\/&#8221;\ub97c &#8220;\/\/&#8221;\ub85c \ubc14\uafb8\uc790 \uc544\ub798\uc5d0 php\ub85c \ub41c \ucf54\ub4dc\uac00 \uc788\ub2e4. \uc774\uc81c &hellip; <a href=\"https:\/\/sarang.inmu.net\/?p=1391\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[php] \ubb38\uc790\uc5f4\uc5d0\uc11c http:\/\/\ub97c \ucc3e\uc544 \ubc14\uafb8\uae30&#8221;<\/span><\/a><\/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_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_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}},"categories":[5],"tags":[171,44,172],"class_list":["post-1391","post","type-post","status-publish","format-standard","hentry","category-5","tag-http","tag-php","tag-preg_replace"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1287,"url":"https:\/\/sarang.inmu.net\/?p=1287","url_meta":{"origin":1391,"position":0},"title":"[PHP] \ubc30\uc5f4\uc744 \ubb34\uc791\uc704\ub85c \uc11e\uace0 \uc2f6\uc744 \ub54c shuffle($arr)","author":"sarang","date":"2020\ub144 02\uc6d4 13\uc77c","format":false,"excerpt":"\ubc30\uc5f4\uacfc \ub79c\ub364\uc740 \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c \uc790\uc8fc \uc4f0\ub294 \ub85c\uc9c1\uc774\ub2e4.\ub531 \uc815\ud574\uc838 \uc788\ub294 \uac83\ucc98\ub7fc \uc7ac\ubbf8 \uc5c6\ub294 \uac83\ub3c4 \uc5c6\uc744 \uac83\uc774\ub2e4. \uc544\ub9c8\ub3c4 \ub79c\ub364\uc774\ub77c\ub294 \uac1c\ub150\uc774 \uc5c6\ub2e4\uba74 \uc6b0\ub9ac\uac00 \ub9cc\ub4e4 \uc218 \uc788\ub294 \ucef4\ud4e8\ud130 \ud504\ub85c\uadf8\ub7a8\uc740 \uc5bc\ub9c8 \ub418\uc9c0 \uc54a\uc744 \ub4ef \ud558\ub2e4. php\uc5d0\uc11c shuffle \ud568\uc218\uac00 \uc788\ub2e4. \ubc30\uc5f4\uc744 \ubb34\uc791\uc704\ub85c \uc11e\uc5b4 \uc8fc\ub294 \ud568\uc218\ub2e4. \uc608\ub97c \ub4e4\uc5b4 \uc774\ubbf8\uc9c0 10\uac1c\ub97c \ubc30\uc5f4\uc5d0 \uc9d1\uc5b4 \ub123\uace0 \ubcf4\uc5ec \uc904 \ub54c 1\ubc88 \ubd80\ud130\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":619,"url":"https:\/\/sarang.inmu.net\/?p=619","url_meta":{"origin":1391,"position":1},"title":"css3","author":"sarang","date":"2016\ub144 09\uc6d4 09\uc77c","format":false,"excerpt":"\ucd5c\uadfc \ud648\ud398\uc774\uc9c0 \uc791\uc5c5\uc744 \ud558\uba74\uc11c css \ub54c\ubb38\uc5d0 \uc9c4\ud589\uc774 \uc548\ub418\uace0 \uc788\ub2e4. \uacfc\uac70\uc5d0\ub294 \ud14c\uc774\ube14\ub85c \ub808\uc774\uc544\uc6c3\uc744 \uc7a1\uc558\ub294\ub370, \uc694\uc998 \uadf8\ub7f0 \uc2dd\uc73c\ub85c \ud654\uba74\uc744 \ub9cc\ub4e4\uba74 \uc2dc\ub300\uc5d0 \ub4a4\ub5a8\uc5b4\uc9c4\ub2e4. \ubb34\uc5c7\uc774\ub4e0 \uc2dc\ub300\uc5d0 \uac78\ub9de\uac8c \uc791\uc5c5\ud558\ub294 \uac8c \ubc14\ub78c\uc9c1 \ud558\ub2e4. \ub808\uc774 \uc544\uc6c3\uc5d0\uc11c \uc911\uc694\ud558\ub2e4\uace0 \uc0dd\uac01 \ub418\ub294 \uba87 \uac00\uc9c0 \uc694\uc810\uc744 \uc774 \uacf3\uc5d0 \uc815\ub9ac\ud558\uc5ec \ucc38\uc870 \ud558\uc790. \u00a0 display \uc18d\uc131\uc5d0\uc11c inline \uacfc inline-block \uc758 \ucc28\uc774\uc810 \uc608\uc81c \uc704\uc758\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":109,"url":"https:\/\/sarang.inmu.net\/?p=109","url_meta":{"origin":1391,"position":2},"title":"css \ucd08\uae30\ud654 \ucf54\ub4dc","author":"sarang","date":"2016\ub144 03\uc6d4 10\uc77c","format":false,"excerpt":"\uc5ec\ub7ec \uac00\uc9c0\uac00 \uc788\uc9c0\ub9cc \ub2e4\uc74c\uc744 \uac80\ud1a0\ud558\uc790 Eric meyer's Reset CSS http:\/\/meyerweb.com\/eric\/tools\/css\/reset HTML5 Doctor CSS RESET http:\/\/html5doctor.com\/html-5-reset-stylesheet YUI 3 Reset CSS http:\/\/developer.yahoo.com\/yui\/3\/cssreset \uc544\uc6b8\ub7ec\uc11c \uc784\uc2dc \uc774\ubbf8\uc9c0\ub97c \uc0ac\uc6a9\ud560 \ub54c http:\/\/placehold.it\ub97c \uc0ac\uc6a9\ud558\uc790 \uc608) <img src=\"http:\/\/placehold.it\/300x300\" \/>","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":1391,"position":3},"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":[]},{"id":25,"url":"https:\/\/sarang.inmu.net\/?p=25","url_meta":{"origin":1391,"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":902,"url":"https:\/\/sarang.inmu.net\/?p=902","url_meta":{"origin":1391,"position":5},"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":[]}],"jetpack_shortlink":"https:\/\/wp.me\/p7qW60-mr","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=\/wp\/v2\/posts\/1391","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=1391"}],"version-history":[{"count":2,"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=\/wp\/v2\/posts\/1391\/revisions"}],"predecessor-version":[{"id":1393,"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=\/wp\/v2\/posts\/1391\/revisions\/1393"}],"wp:attachment":[{"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sarang.inmu.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}