{"id":1510,"date":"2011-12-06T10:23:33","date_gmt":"2011-12-06T01:23:33","guid":{"rendered":"http:\/\/stocker.jp\/diary\/?p=1510"},"modified":"2012-01-16T15:05:33","modified_gmt":"2012-01-16T06:05:33","slug":"how-to-make-croppy","status":"publish","type":"post","link":"https:\/\/stocker.jp\/diary\/how-to-make-croppy\/","title":{"rendered":"Croppy\u306e\u4f5c\u308a\u65b9"},"content":{"rendered":"<p>Web \u30b5\u30a4\u30c8\u69cb\u7bc9\u306e\u305f\u3081\u306e\u30c8\u30fc\u30bf\u30eb\u30c7\u30b6\u30a4\u30f3\u8a8c <strong><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/B0061NZ8QQ\/ref=as_li_ss_il?ie=UTF8&#038;tag=caffeazzurro-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=B0061NZ8QQ\" target=\"_blank\">Web Designing 2011\u5e74 12\u6708\u53f7<\/a><\/strong> \u306b\u3001jQuery \u00d7 WordPress \u6d3b\u7528\u4e8b\u4f8b\u3068\u3044\u3046\u3053\u3068\u3067 Croppy \u306e\u4f5c\u308a\u65b9\u3092\u63b2\u8f09\u3055\u305b\u3066\u9802\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u8a18\u4e8b\u306f2\u30da\u30fc\u30b8\u3057\u304b\u306a\u3044\u95a2\u4fc2\u3067\u307b\u3093\u306e\u4e00\u90e8\u306e\u60c5\u5831\u3068\u30bd\u30fc\u30b9\u3057\u304b\u63b2\u8f09\u51fa\u6765\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8272\u3005\u3068\u88dc\u8db3\u3055\u305b\u3066\u9802\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u3053\u306e\u8a18\u4e8b\u306f <strong><a href=\"http:\/\/atnd.org\/events\/22823\" target=\"_blank\">WordPress Advent Calendar 2011<\/a><\/strong> \u3068\u3044\u3046\u300c12\u67081\u65e5\u304b\u308912\u670825\u65e5\u306e\u30af\u30ea\u30b9\u30de\u30b9\u307e\u3067\u4e00\u4eba\u4e00\u3064\u305a\u3064\u81ea\u5206\u306e\u30d6\u30ed\u30b0\u306bWordPress\u306b\u3064\u3044\u3066\u4f55\u304b\u3057\u3089\u66f8\u3044\u3066\u304f\u30a4\u30d9\u30f3\u30c8\u300d\u3067\u6628\u65e5\u306e @horike37 \u3055\u3093\u306b\u7d9a\u304d\u30016\u756a\u30d0\u30c3\u30bf\u30fc\u3068\u3057\u3066\u57f7\u7b46\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/hm11.png?resize=500%2C300&#038;ssl=1\" alt=\"How to make\" title=\"\" width=\"500\" height=\"300\" class=\"aligncenter size-full wp-image-1519\" srcset=\"https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/hm11.png?w=500&amp;ssl=1 500w, https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/hm11.png?resize=300%2C180&amp;ssl=1 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<div class=\"a\">\n<h4>\u76ee\u6b21<\/h4>\n<ul>\n<li>\u306a\u305c WordPress \u3067\u4f5c\u3063\u305f\u306e\u304b<\/li>\n<li>\u8a18\u4e8b\u306e\u8ffd\u52a0\u306f\u3069\u3046\u3084\u3063\u3066\u3044\u308b\u306e\u304b<\/li>\n<li>\u8a18\u4e8b\u306e\u524a\u9664\u306f\u3069\u3046\u3084\u3063\u3066\u3044\u308b\u306e\u304b<\/li>\n<li>Web Designing\u8a18\u4e8b\u306e\u88dc\u8db3<\/li>\n<li>\u8272\u5f69\u5206\u6790\u306a\u3069\u306e\u60c5\u5831\u306f\u3069\u3046\u3084\u3063\u3066\u4fdd\u7ba1\u3057\u3066\u3044\u308b\u304b<\/li>\n<li>\u30b5\u30fc\u30d0\u5468\u308a\u3068\u8ca0\u8377\u5bfe\u7b56<\/li>\n<\/ul>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%E3%81%AA%E3%81%9C_WordPress_%E3%81%A7%E4%BD%9C%E3%81%A3%E3%81%9F%E3%81%AE%E3%81%8B\"><\/span>\u306a\u305c WordPress \u3067\u4f5c\u3063\u305f\u306e\u304b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Croppy \u3092 WordPress \u3067\u5236\u4f5c\u3057\u305f\u7406\u7531\u306f\u3001\u4e3b\u306b<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/stocker.jp\/diary\/wordpress-1\/\" target=\"_blank\">WordPress \u3067 Web \u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u308b\u65b9\u6cd5<\/a><\/strong> \u3068\u3044\u3046\u9023\u8f09\u3092\u66f8\u3044\u3066\u3044\u305f\u305f\u3081\u3001\u3042\u308b\u7a0b\u5ea6\u672c\u683c\u7684\u306a\u30bd\u30fc\u30b7\u30e3\u30eb\u7cfb\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u308c\u308b\u304b\u8a66\u3057\u3066\u307f\u305f\u304b\u3063\u305f<\/li>\n<li>\u305d\u3082\u305d\u3082 <a href=\"http:\/\/cakephp.jp\/\" target=\"_blank\">CakePHP<\/a> \u3084 <a href=\"http:\/\/rubyonrails.org\/\" target=\"_blank\">Ruby on Rails<\/a> \u7b49\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3063\u305f\u3053\u3068\u304c\u7121\u304b\u3063\u305f<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n\u6b21\u306b\u5236\u4f5c\u3059\u308bWeb\u30b5\u30fc\u30d3\u30b9\u306f CakePHP 2.0 \u3092\u4f7f\u304a\u3046\u3068\u601d\u3063\u3066\u3044\u3066\u4eca\u52c9\u5f37\u4e2d\u3067\u3059\u304c\u3001\u73fe\u6642\u70b9\u3067\u306f Croppy \u3092 CakePHP \u306a\u3069\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u4f5c\u3063\u305f\u307b\u3046\u304c\u826f\u304b\u3063\u305f\u306e\u304b\u3001\u305d\u308c\u3068\u3082 WordPress \u3067\u4f5c\u3063\u3066\u6b63\u89e3\u3060\u3063\u305f\u306e\u304b\u306f\u3061\u3087\u3063\u3068\u5206\u304b\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3060\u3001WordPress \u306f\u975e\u5e38\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3084\u3059\u304f\u3001\u79c1\u306e\u3088\u3046\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304c\u82e6\u624b\u306a\u30c7\u30b6\u30a4\u30ca\u30fc\u3067\u3082\u306a\u3093\u3068\u304b\u30b5\u30fc\u30d3\u30b9\u3092\u30ea\u30ea\u30fc\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\nWordPress \u306f\u3084\u308a\u305f\u3044\u3053\u3068\u3092 Google \u3067\u691c\u7d22\u3059\u308c\u3070\u5927\u62b5\u306e\u3053\u3068\u306f\u5206\u304b\u308a\u307e\u3057\u305f\u3057\u3001\u901f\u5ea6\u3084\u30b5\u30fc\u30d0\u306e\u8ca0\u8377\u3082\u5168\u304f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%A8%98%E4%BA%8B%E3%81%AE%E8%BF%BD%E5%8A%A0%E3%81%AF%E3%81%A9%E3%81%86%E3%82%84%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE%E3%81%8B\"><\/span>\u8a18\u4e8b\u306e\u8ffd\u52a0\u306f\u3069\u3046\u3084\u3063\u3066\u3044\u308b\u306e\u304b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u300cWordPress \u3092\u4f7f\u3048\u3070\u672c\u683c\u7684\u306a Web\u30b5\u30fc\u30d3\u30b9\u304c\u4f5c\u308c\u308b\u306e\u3067\u306f\uff1f\u300d\u3068\u611f\u3058\u305f\u306e\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3060\u3053\u3068\u304c\u304d\u3063\u304b\u3051\u3067\u3057\u305f\u3002<\/p>\n<p><strong><a href=\"http:\/\/weble.org\/2011\/03\/23\/wordpress-wp_insert_post\" target=\"_blank\">WordPress \u3067\u30b2\u30b9\u30c8\u306b\u8a18\u4e8b\u6295\u7a3f\u3055\u305b\u308b\u30d5\u30a9\u30fc\u30e0\u304c\u4f5c\u308c\u308b wp_insert_post() \u95a2\u6570\u304c\u4fbf\u5229\u3059\u304e\u3066\u304e\u3063\u304f\u308a\u8170\u306b\u306a\u308b\u4ef6 | \u30a6\u30a7\u30d6\u30eb<\/a><\/strong><\/p>\n<p>\u3053\u306e\u95a2\u6570\u3092\u4f7f\u3048\u3070 WordPress \u306e\u7ba1\u7406\u753b\u9762\u304b\u3089\u3067\u306a\u304f\u3066\u3082\u8a18\u4e8b\u3092\u6295\u7a3f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u304a\u305d\u3089\u304f\u3053\u306e\u95a2\u6570\u3092\u4f7f\u3063\u3066\u3001\u30a6\u30a7\u30d6\u30eb\u306e @soraiy \u3055\u3093\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li><strong><a href=\"http:\/\/yume.sorait.com\/\" target=\"_blank\">\u30e6\u30e1\u30df\u30eb | \u624b\u8efd\u306b\u5922\u306e\u30d6\u30ed\u30b0\u3092\u304b\u3051\u308b\u5922\u65e5\u8a18\u30b5\u30fc\u30d3\u30b9<\/a><\/strong><\/li>\n<li><strong><a href=\"http:\/\/pekorin.sorait.com\/\" target=\"_blank\">\u30da\u30b3\u30ea\u30f3 | \u3042\u306e\u6642\u8a00\u3048\u306a\u304b\u3063\u305f\u3042\u308a\u304c\u3068\u3046\u3092\u4eca\u3053\u3053\u3067<\/a><\/strong><\/li>\n<li><strong><a href=\"http:\/\/webdesignsample.net\/\" target=\"_blank\">Web\u30c7\u30b6\u30a4\u30f3\u30b5\u30f3\u30d7\u30eb | \u307f\u3093\u306a\u3067\u4f5c\u308b\u30c7\u30b6\u30a4\u30f3\u30ae\u30e3\u30e9\u30ea\u30fc\u30b5\u30a4\u30c8<\/a><\/strong><\/li>\n<\/ul>\n<p>\u5f93\u3063\u3066\u3001Croppy \u306e\u30a2\u30a4\u30c7\u30a3\u30a2\u3092\u601d\u3044\u3064\u3044\u305f\u3068\u304d\u306b\u300cWordPress \u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u4f5c\u308c\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u300d\u3068\u601d\u3044\u3001WordPress \u3092\u30d9\u30fc\u30b9\u306b\u5236\u4f5c\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u8a18\u4e8b\u306e\u6295\u7a3f\u306f\u3001WordPress \u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b \/add\/post.php \u3068\u3044\u3046 PHP \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u308a\u3001\u305d\u3061\u3089\u3067\u884c\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30c6\u30fc\u30de\u30d5\u30a9\u30eb\u30c0\u4ee5\u5916\u306e\u5834\u6240\u306b\u3042\u308b PHP \u306f\u3001\u305d\u306e\u307e\u307e\u3067\u306f WordPress \u306e\u95a2\u6570\u304c\u4f7f\u7528\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre lang=\"php\" line=\"1\">\r\nrequire_once('..\/wp-load.php');\r\n<\/pre>\n<p>require_once \u95a2\u6570\u3092\u4f7f\u3063\u3066 WordPress\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u3042\u308b wp-load.php \u3092\u8aad\u307f\u8fbc\u3080\u3068\u3001WordPress \u72ec\u81ea\u306e\u95a2\u6570\u304c\u4f7f\u3048\u307e\u3059\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304c WordPress \u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308c\u3070\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u60c5\u5831\u3092\u8868\u793a\u3057\u305f\u308a\u3001\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u8a18\u4e8b\u3092\u6295\u7a3f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u306f\u6295\u7a3f\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\nis_user_logged_in() \u306f WordPress \u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u5834\u5408\u306b true \u306b\u306a\u308b WordPress \u306e\u95a2\u6570\u3067\u3059\u3002<\/p>\n<pre lang=\"php\" line=\"1\">\r\n\/\/ \u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u7d42\u4e86\r\nif ( !is_user_logged_in() ) {\r\n\t\r\n\t\/\/ \u30c8\u30c3\u30d7\u30da\u30fc\u30b8URL\r\n\t$url = get_bloginfo('url');\r\n\t\r\n\t\/\/ \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\r\n\techo <<< EOF\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\"UTF-8\">\r\n<title>\u753b\u50cf\u3092\u5207\u308a\u629c\u304d<\/title>\r\n<\/head>\r\n<body>\r\n<p>\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u72b6\u614b\u3067\u306a\u3044\u3068\u30da\u30fc\u30b8\u3092\u8ffd\u52a0\u3067\u304d\u307e\u305b\u3093\u3002\u304a\u624b\u6570\u3067\u3059\u304c<a href=\"$url\/\">\u30c8\u30c3\u30d7\u30da\u30fc\u30b8<\/a>\u3088\u308a\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<\/body>\r\n<\/html>\r\nEOF;\r\n\t\r\n\texit();\r\n\t\r\n}\r\n<\/pre>\n<p>\u3053\u306e\u4e0b\u306b\u3001POST\u3067\u5024\u3092\u53d6\u5f97\u3057\u3001\u53d6\u5f97\u3057\u305f\u5024\u306b\u554f\u984c\u304c\u306a\u3051\u308c\u3070\u5148\u307b\u3069\u306e wp_insert_post() \u95a2\u6570\u3092\u4f7f\u3063\u3066\u8a18\u4e8b\u3092\u6295\u7a3f\u3055\u305b\u308c\u3070\u3001WordPress \u3067\u69cb\u7bc9\u3057\u305f Web\u30b5\u30fc\u30d3\u30b9\u4e0a\u304b\u3089\u8a18\u4e8b\u3092\u6295\u7a3f\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"crop.php\" src=\"https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/crop2.png?resize=500%2C396&#038;ssl=1\" class=\"alignnone\" width=\"500\" height=\"396\" \/><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u8a18\u4e8b\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u306f <a href=\"http:\/\/code.google.com\/p\/wkhtmltopdf\/\" target=\"_blank\">wkhtmltoimage<\/a> \u3068\u3044\u3046 WebKit \u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u3055\u304f\u3089\u306e\u30af\u30e9\u30a6\u30c9\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u305d\u308c\u3092\u4f7f\u3063\u3066\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u305f\u753b\u50cf\u3092 PNG \u3067\u4fdd\u5b58\u3001JCrop \u3068\u3044\u3046 jQuery \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u30c9\u30e9\u30c3\u30b0\u3067\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3001\u9078\u629e\u7bc4\u56f2\uff08\u5de6\u4e0a\u3068\u53f3\u4e0b\uff09\u306e\u5ea7\u6a19\u3092 form \u306b\u5165\u308c\u3001PHP \u306e GD \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u5207\u308a\u629c\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%A8%98%E4%BA%8B%E3%81%AE%E5%89%8A%E9%99%A4%E3%81%AF%E3%81%A9%E3%81%86%E3%82%84%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE%E3%81%8B\"><\/span>\u8a18\u4e8b\u306e\u524a\u9664\u306f\u3069\u3046\u3084\u3063\u3066\u3044\u308b\u306e\u304b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Croppy \u3092\u4f5c\u308b\u306b\u3042\u305f\u308a\u3001\u771f\u3063\u5148\u306b\u6c7a\u3081\u305f\u3053\u3068\u306f\u300c\u30e6\u30fc\u30b6\u30fc\u306b\u306f WordPress \u306e\u7ba1\u7406\u753b\u9762\u3092\u898b\u305b\u306a\u3044\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u3057\u305f\u3002<br \/>\nWordPress \u3067\u306f\u3001\u8a18\u4e8b\u306e\u4fee\u6b63\u3084\u524a\u9664\u306f WordPress \u306e\u7ba1\u7406\u753b\u9762\u3092\u4f7f\u3063\u305f\u307b\u3046\u304c\u697d\u3067\u3059\u304c\u3001\u4e00\u822c\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u65b9\u304b\u3089\u306f WordPress \u3092\u610f\u8b58\u305b\u305a\u3001\u4e00\u822c\u306e Web\u30b5\u30fc\u30d3\u30b9\u3068\u540c\u3058\u3088\u3046\u306b\u4f7f\u3063\u3066\u6b32\u3057\u304b\u3063\u305f\u306e\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u554f\u984c\u306b\u306a\u308b\u306e\u304c\u300c\u8a18\u4e8b\u3092\u524a\u9664\u3055\u305b\u308b\u306b\u306f\u3069\u3046\u3059\u308b\u304b\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u304c\u3001\u81ea\u5206\u304c\u6295\u7a3f\u3057\u305f\u8a18\u4e8b\u306e\u5834\u5408\u3001\u6295\u7a3f\u8a18\u4e8b\uff08\u30c6\u30fc\u30de\u306e single.php\uff09\u30da\u30fc\u30b8\u306e\u53f3\u4e0b\u306b\u300c\u3053\u306e\u6295\u7a3f\u3092\u524a\u9664\u300d\u30ea\u30f3\u30af\u3092\u4ed8\u3051\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306b\u5177\u4f53\u7684\u306a\u3084\u308a\u65b9\u304c\u66f8\u3044\u3066\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><strong><a href=\"http:\/\/kachibito.net\/wordpress\/delete-post-on-front-end.html\" target=\"_blank\">\u304a\u624b\u8efdWordPress Tips\uff1a\u95b2\u89a7\u3057\u3066\u3044\u308b\u8a18\u4e8b\u3092\u305d\u306e\u5834\u3067\u524a\u9664\u3059\u308b\u30dc\u30bf\u30f3\u3092\u8a2d\u7f6e\u3059\u308b &#8211; \u304b\u3061\u3073\u3068. net<\/a><\/strong><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Web_Designing%E8%A8%98%E4%BA%8B%E3%81%AE%E8%A3%9C%E8%B6%B3\"><\/span>Web Designing\u8a18\u4e8b\u306e\u88dc\u8db3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Web Designing \u306e 2011\u5e7412\u6708\u53f7\u306e72\u301c73\u30da\u30fc\u30b8\u306b\u300cjQuery \u3068 WordPress \u3067\u69cb\u7bc9\u3057\u305f\u30bd\u30fc\u30b7\u30e3\u30eb Web \u30b5\u30fc\u30d3\u30b9\u300d\u3068\u3044\u3046\u30bf\u30a4\u30c8\u30eb\u3067\u3001Croppy \u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u4e00\u90e8\u3092\u516c\u958b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001\u300c\u30d5\u30a9\u30ed\u30fc\u6a5f\u80fd\u3092\u3069\u3046\u3084\u3063\u3066\u5b9f\u88c5\u3057\u3066\u3044\u308b\u304b\u300d\u3084\u300c\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u305f\u753b\u50cf\u306e\u5207\u308a\u629c\u304d\u300d\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/B0061NZ8QQ\/ref=as_li_ss_il?ie=UTF8&#038;tag=caffeazzurro-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=B0061NZ8QQ\" target=\"_blank\"><img data-recalc-dims=\"1\" decoding=\"async\" border=\"0\" src=\"https:\/\/i0.wp.com\/ec2.images-amazon.com\/images\/I\/51Akutl7y4L._SS500_.jpg\" ><\/a><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.assoc-amazon.jp\/e\/ir?t=caffeazzurro-22&#038;l=as2&#038;o=9&#038;a=B0061NZ8QQ\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important; display:none;\" \/><\/p>\n<p>\u6b8b\u5ff5\u306a\u304c\u3089\u3001\u7d19\u9762\u306e\u95a2\u4fc2\u4e0a\u5404\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u95a2\u9023\u56f3\u3092\u63b2\u8f09\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u3053\u3053\u306b\u63b2\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/hm2.png?resize=500%2C483&#038;ssl=1\" alt=\"\u30bd\u30fc\u30b9\u306e\u95a2\u9023\u56f3\" title=\"\" width=\"500\" height=\"483\" class=\"aligncenter size-full wp-image-1529\" srcset=\"https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/hm2.png?w=500&amp;ssl=1 500w, https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/hm2.png?resize=300%2C289&amp;ssl=1 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>B\u3001C\u3001D \u306f\u305d\u308c\u305e\u308c\u8a18\u4e8b\u5185\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 B\u3001C\u3001D \u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%89%B2%E5%BD%A9%E5%88%86%E6%9E%90%E3%81%AA%E3%81%A9%E3%81%AE%E6%83%85%E5%A0%B1%E3%81%AF%E3%81%A9%E3%81%86%E3%82%84%E3%81%A3%E3%81%A6%E4%BF%9D%E7%AE%A1%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%81%8B\"><\/span>\u8272\u5f69\u5206\u6790\u306a\u3069\u306e\u60c5\u5831\u306f\u3069\u3046\u3084\u3063\u3066\u4fdd\u7ba1\u3057\u3066\u3044\u308b\u304b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><a href=\"http:\/\/croppy.org\/1718\/\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/973d86101748b8f620a1d5102e67da7c.png?resize=500%2C138&#038;ssl=1\" alt=\"\u8272\u5f69\u5206\u6790\" title=\"\" width=\"500\" height=\"138\" class=\"aligncenter size-large wp-image-1549\" srcset=\"https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/973d86101748b8f620a1d5102e67da7c.png?resize=500%2C138&amp;ssl=1 500w, https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/973d86101748b8f620a1d5102e67da7c.png?resize=300%2C83&amp;ssl=1 300w, https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/973d86101748b8f620a1d5102e67da7c.png?w=767&amp;ssl=1 767w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>\u6295\u7a3f\u3055\u308c\u305f\u8a18\u4e8b\u306e\u4e2d\u306b\u306f\u300c\u8272\u5f69\u5206\u6790\u300d\u3068\u3044\u3046\u30b3\u30fc\u30ca\u30fc\u304c\u3042\u308a\u3001\u5207\u308a\u629c\u304b\u308c\u305f\u30d1\u30fc\u30c4\u306b\u542b\u307e\u308c\u308b\u6700\u592725\u8272\u306e\u30ab\u30e9\u30fc\u30b3\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u5207\u308a\u629c\u304b\u308c\u305f\u753b\u50cf\u3092 PHP \u306e <a href=\"http:\/\/php.net\/manual\/ja\/book.image.php\" target=\"_blank\">GD\u30e9\u30a4\u30d6\u30e9\u30ea<\/a> \u3067\u89e3\u6790\u3057\u3066\u30ab\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3057\u3001RGB \u305d\u308c\u305e\u308c\u306e1\u306e\u4f4d\u304c0\u306b\u306a\u308b\u3088\u3046\u4e38\u3081\u305f\u4e0a\u3067\u3001\u6700\u592725\u8272\u307e\u3067\u3092\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306b\u4fdd\u5b58\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8272\u3092\u307e\u3068\u3081\u308b\u51e6\u7406\u306b\u95a2\u3057\u3066\u306f\u3001 yuki \u3055\u3093\u306e\u30d6\u30ed\u30b0\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u65b9\u6cd5\u3068\u540c\u3058\u3088\u3046\u306a\u3053\u3068\u3092\u3084\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong><a href=\"http:\/\/blog.v-colors.com\/photo-stocker-color-search.html\" target=\"_blank\">PHOTO STOCKER\u306b\u4f3c\u305f\u8272\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b\u753b\u50cf\u304c\u7c21\u5358\u306b\u691c\u7d22\u3067\u304d\u308b\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\uff01<\/a><\/strong><\/p>\n<p>\u6700\u521d\u3001\u30ab\u30e9\u30fc\u30b3\u30fc\u30c9\u306f <a href=\"http:\/\/wpdocs.sourceforge.jp\/%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9\" target=\"_blank\">\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9<\/a> \u306b\u4fdd\u5b58\u3057\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001 @miya0001 \u3055\u3093\u3088\u308a\u691c\u7d22\u306e\u969b\u306e\u8ca0\u8377\u3092\u8003\u3048\u308b\u3068\u300c\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u300d\u306e\u65b9\u304c\u826f\u3044\u3068\u30a2\u30c9\u30d0\u30a4\u30b9\u3092\u9802\u3044\u305f\u306e\u3067\u30ea\u30ea\u30fc\u30b9\u76f4\u524d\u306b\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30c6\u30fc\u30de\u306e functions.php \u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre lang=\"php\" line=\"1\">\r\n\/\/ \u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc 'color\uff08label\u306f\u30ab\u30e9\u30fc\u30b3\u30fc\u30c9\uff09' \u306e\u8ffd\u52a0\r\nfunction create_my_taxonomies() {\r\n\tregister_taxonomy(\r\n\t\t'color',\r\n\t\t'post',\r\n\t\tarray(\r\n\t\t\t'hierarchical' => false,\r\n\t\t\t'label' => '\u30ab\u30e9\u30fc\u30b3\u30fc\u30c9',\r\n\t\t\t'query_var' => true,\r\n\t\t\t'rewrite' => true\r\n\t\t)\r\n\t);\r\n}\r\n<\/pre>\n<p>\u3042\u3068\u306f\u3001\u8a18\u4e8b\u3092\u8ffd\u52a0\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\uff08\/add\/post.php\uff09\u3067\u8a18\u4e8b\u3092\u6295\u7a3f\u3057\u305f\u5f8c\u3001\u8a18\u4e8b\u306e ID \u3092\u6307\u5b9a\u3057\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre lang=\"php\" line=\"1\">\r\n\/\/ \u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc 'color' \u3092\u30bb\u30c3\u30c8\r\n\/\/ $postid==\u8a18\u4e8bID, $colors_key==\u30bb\u30c3\u30c8\u3057\u305f\u3044\u5185\u5bb9\u306e\u914d\u5217, 'color'==\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u540d\r\nwp_set_object_terms( $postid, $colors_key, 'color' );\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%B5%E3%83%BC%E3%83%90%E5%91%A8%E3%82%8A%E3%81%A8%E8%B2%A0%E8%8D%B7%E5%AF%BE%E7%AD%96\"><\/span>\u30b5\u30fc\u30d0\u5468\u308a\u3068\u8ca0\u8377\u5bfe\u7b56<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4>\u4eee\u60f3\u30b5\u30fc\u30d0<\/h4>\n<p>Croppy \u306f\u3001\u30aa\u30fc\u30d7\u30f3\u76f4\u5f8c\u306f\u3053\u306e\u30d6\u30ed\u30b0\u3068\u540c\u3058\u30b5\u30fc\u30d0\uff08<strong><a href=\"http:\/\/px.a8.net\/svt\/ejp?a8mat=1TSWXG+CONHRM+D8Y+BWVTE\" target=\"_blank\">\u3055\u304f\u3089\u306eVPS<\/a><\/strong> 512M\uff09\u3067\u52d5\u304b\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u30ad\u30e3\u30d7\u30c1\u30e3\u306b\u4f7f\u3063\u3066\u3044\u308b <a href=\"http:\/\/code.google.com\/p\/wkhtmltopdf\/\" target=\"_blank\">wkhtmltoimage<\/a> \u304c\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u305f\u77ac\u9593\u306b\u30e1\u30e2\u30ea\u3092\u98df\u3044\u904e\u304e\u305f\u308a\u3001\u305f\u307e\u306b\u66b4\u8d70\u3057\u3066 CPU \u3092 100% \u5c02\u6709\u3057\u7d9a\u3051\u308b\u305f\u3081\u304b\u6642\u3005 Croppy \u306e\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/i0.wp.com\/www11.a8.net\/0.gif?resize=1%2C1\" alt=\"\" style=\"display:none;\"><\/p>\n<p>\u305d\u3053\u3067\u3001\u73fe\u5728\u306f <strong><a href=\"http:\/\/cloud.sakura.ad.jp\/\" target=\"_blank\">\u3055\u304f\u3089\u306e\u30af\u30e9\u30a6\u30c9<\/a><\/strong> \u306e\u30d7\u30e9\u30f31\uff08CPU 1\u30b3\u30a2\u3001\u30e1\u30e2\u30ea2GB\u3001\u30c7\u30a3\u30b9\u30af20GB\uff09\u3067\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\u3002\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001swap \u304c\u767a\u751f\u3059\u308b\u3053\u3068\u3082\u306a\u304f\u304b\u306a\u308a\u5feb\u9069\u306b\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u306f\u3001\u3053\u306e\u30d6\u30ed\u30b0\u3068\u540c\u3058\u304f Apache \u306f\u4f7f\u7528\u305b\u305a\u3001<a href=\"http:\/\/nginx.org\/ja\/\" target=\"_blank\">Nginx<\/a> \u3067 Proxy Cache \u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nNginx \u306e\u8a2d\u5b9a\u306f Kray\u3055\u3093\u306e\u30d6\u30ed\u30b0\u306e\u8a2d\u5b9a\u2193\u306b\u8fd1\u3044\u3067\u3059\u3002<\/p>\n<p><strong><a href=\"http:\/\/kray.jp\/blog\/wordpress-tuning\/\" target=\"_blank\">WordPress\u3092100\u500d\u901f\u304f\u3059\u308b\uff01 MySQL\u306e\u8abf\u6574\u3084nginx proxy cache | KRAY Inc<\/a><\/strong><\/p>\n<p>\u3053\u306e\u8a2d\u5b9a\u306e\u5834\u5408\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u306b\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u305f\u30da\u30fc\u30b8\u3092\u898b\u305b\u308b\u305f\u3081\u307b\u3068\u3093\u3069\u30b5\u30fc\u30d0\u306b\u8ca0\u8377\u304c\u304b\u304b\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>Croppy \u306e\u5834\u5408\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u65b9\u3082\u591a\u3044\u306f\u305a\u306a\u306e\u3067\u3001WordPress \u306b\u3088\u308b\u30b5\u30fc\u30d0\u306e\u8ca0\u8377\u304c\u5fc3\u914d\u3067\u3057\u305f\u304c\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u65b9\u304c\u305d\u3053\u305d\u3053\u3044\u305f\u5834\u5408\u3067\u3082\u30b5\u30fc\u30d0\u306e\u8ca0\u8377\u306f\u307b\u3068\u3093\u3069\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<h4>\u30ad\u30e3\u30d7\u30c1\u30e3\u30bd\u30d5\u30c8\u306e\u591a\u91cd\u8d77\u52d5\u5bfe\u7b56<\/h4>\n<p>\u554f\u984c\u306f <a href=\"http:\/\/code.google.com\/p\/wkhtmltopdf\/\" target=\"_blank\">wkhtmltoimage<\/a> \u306e\u591a\u91cd\u8d77\u52d5\u306b\u3088\u308b\u30b9\u30e9\u30c3\u30b7\u30f3\u30b0\u3067\u3001VPS \u306e\u9803\u306b\u30b5\u30fc\u30d0\u306e\u6319\u52d5\u3092\u898b\u3066\u3044\u308b\u3068\u3001\u3069\u3046\u3084\u3089\u30ad\u30e3\u30d7\u30c1\u30e3\u3092\u958b\u59cb\u3059\u308b\u305f\u3081\u306e\u30d6\u30c3\u30af\u30de\u30fc\u30af\u30ec\u30c3\u30c8\u304c\u9023\u7d9a\u3067\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u305f\u3081\u306b wkhtmltoimage \u304c\u591a\u91cd\u8d77\u52d5\u3055\u308c\u3001VPS \u306e\u30e1\u30e2\u30ea\u304c\u4e0d\u8db3\u3057\u3066\u30b9\u30e9\u30c3\u30b7\u30f3\u30b0\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3088\u3046\u3067\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001WordPress \u306e <strong><a href=\"http:\/\/elearn.jp\/wpman\/function\/update_option.html\" target=\"_blank\">update_option()<\/a><\/strong> \u95a2\u6570\u3092\u4f7f\u3044\u3001\u30ad\u30e3\u30d7\u30c1\u30e3\u3092\u958b\u59cb\u3059\u308b PHP \uff08\/add\/index.php\uff09\u304c\u5b9f\u884c\u3055\u308c\u305f\u65e5\u6642\u3092 update_option() \u3067\u8a18\u9332\u3057\u3066\u304a\u304d\u3001\u6b21\u56de\u304b\u3089\u306f\u3001\u307e\u305a <strong><a href=\"http:\/\/elearn.jp\/wpman\/function\/get_option.html\" target=\"_blank\">get_option()<\/a><\/strong> \u95a2\u6570\u3067\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u6642\u9593\u3068\u73fe\u5728\u306e\u6642\u9593\u3092\u6bd4\u8f03\u3057\u3001\u524d\u56de\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u305f\u6642\u9593\u304b\u3089+15\u79d2\u4ee5\u4e0a\u7d4c\u904e\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u30ad\u30e3\u30d7\u30c1\u30e3\u3055\u305b\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u308c\u3067\u3001wkhtmltoimage \u306e\u591a\u91cd\u8d77\u52d5\u306b\u3088\u308b\u30b9\u30e9\u30c3\u30b7\u30f3\u30b0\u306f\u591a\u5c11\u6291\u3048\u3089\u308c\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre lang=\"php\" line=\"1\">\r\n\/\/ \u6700\u5f8c\u306b\u6295\u7a3f\u3057\u305f\u6642\u523b\u3092\u53d6\u5f97\r\n$lasttime = get_option('cp_lasttime');\r\n\r\n\/\/ \u73fe\u5728\u6642\u523b\u3092\u53d6\u5f97\r\n$nowtime = time();\r\n\r\n\/\/ \u73fe\u5728\u6642\u523b+15\u79d2\u3092\u53d6\u5f97\r\n$nowtimeminus = time(strtotime('now'))-15;\r\n\r\n\/\/ \u3082\u305715\u79d2\u4ee5\u5185\u3067\u3042\u308c\u3070\r\nif ( $lasttime > $nowtimeminus ) {\r\n\t\r\n\t\/\/ \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\r\n\techo <<< EOF\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\"UTF-8\">\r\n<title>\u753b\u50cf\u3092\u5207\u308a\u629c\u304d<\/title>\r\n<\/head>\r\n<body>\r\n<h1 style=\"font-size: 24px;\">\u9023\u7d9a\u3057\u3066\u5207\u308a\u629c\u3053\u3046\u3068\u3057\u305f\u305f\u3081\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u3092\u505c\u6b62\u3057\u307e\u3057\u305f\u3002<\/h1>\r\n<p>\u4ee5\u4e0b\u306e\u53ef\u80fd\u6027\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\r\n<ul>\r\n\t<li>\u8ab0\u304b\u304c\u540c\u6642\u306b\u5207\u308a\u629c\u3053\u3046\u3068\u3057\u305f<\/li>\r\n\t<li>\u30d6\u30c3\u30af\u30de\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u9023\u7d9a\u3057\u3066\u30af\u30ea\u30c3\u30af\u3057\u305f\uff08\u30d6\u30c3\u30af\u30de\u30fc\u30af\u30ec\u30c3\u30c8\u306f1\u5ea6\u3060\u3051\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u3057\u3070\u3089\u304f\u304a\u5f85\u3061\u304f\u3060\u3055\u3044\uff09<\/li>\r\n<\/ul>\r\n<p>\u304a\u624b\u6570\u3092\u304a\u304b\u3051\u3057\u3066\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30d6\u30e9\u30a6\u30b6\u306e[\u623b\u308b]\u30dc\u30bf\u30f3\u3067\u524d\u306e\u30da\u30fc\u30b8\u306b\u623b\u308a\u300115\u79d2\u4ee5\u4e0a\u7d4c\u904e\u3057\u3066\u304b\u3089\u30d6\u30c3\u30af\u30de\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\r\n<\/body>\r\n<\/html>\r\nEOF;\r\n\t\r\n\texit();\r\n\t\r\n}\r\n\r\n\/\/ \u73fe\u5728\u6642\u523b\u3092\u300c\u6700\u5f8c\u306b\u6295\u7a3f\u3057\u305f\u6642\u523b\u300d\u3068\u3059\u308b\r\nupdate_option( 'cp_lasttime', $nowtime );\r\n<\/pre>\n<p>\u73fe\u5728\u4f7f\u7528\u3057\u3066\u3044\u308b \u3055\u304f\u3089\u306e\u30af\u30e9\u30a6\u30c9 \u3067\u306f\u3001wkhtmltoimage \u304c\u66b4\u8d70\u3057\u3066\u3082 top \u30b3\u30de\u30f3\u30c9\u3067 CPU \u4f7f\u7528\u7387\u3092\u78ba\u8a8d\u3059\u308b\u307e\u3067\u306f\u307b\u3068\u3093\u3069\u6c17\u3065\u304b\u306a\u3044\u7a0b\u5ea6\u3067\u3059\u3002<br \/>\n\u305f\u3060\u3001\u30ad\u30e3\u30d7\u30c1\u30e3\u7d42\u4e86\u5f8c\u306b wkhtmltoimage  \u30d7\u30ed\u30bb\u30b9\u304c\u6b8b\u3063\u3066\u3044\u305f\u5834\u5408\u3084\u6570\u5206\u9593\u8d77\u52d5\u3057\u7d9a\u3051\u3066\u3044\u305f\u6642\u306f\u5f37\u5236\u7d42\u4e86\u3059\u308b\u65b9\u6cd5\u304c\u306a\u3044\u304b\u3001\u3053\u308c\u304b\u3089\u8abf\u3079\u3088\u3046\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>CDN<\/h4>\n<p>Nginx Proxy Cache \u3092\u4f7f\u3063\u3066\u3044\u308c\u3070\u8ca0\u8377\u306b\u95a2\u3057\u3066\u306f\u307e\u305a\u5927\u4e08\u592b\u3060\u308d\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u753b\u50cf\u304c\u591a\u3044\u30b5\u30a4\u30c8\u306a\u306e\u3067\u5ff5\u306e\u305f\u3081 CDN \u3092\u5c0e\u5165\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><strong><a href=\"http:\/\/ja.wikipedia.org\/wiki\/%E3%82%B3%E3%83%B3%E3%83%86%E3%83%B3%E3%83%84%E3%83%87%E3%83%AA%E3%83%90%E3%83%AA%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF\" target=\"_blank\">\u30b3\u30f3\u30c6\u30f3\u30c4\u30c7\u30ea\u30d0\u30ea\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\uff08CDN\uff09- Wikipedia<\/a><\/strong><\/p>\n<p>CDN \u306f <strong><a href=\"http:\/\/www.akamai.co.jp\/enja\/\" target=\"_blank\">Akamai<\/a><\/strong> \u306a\u3069\u304c\u6709\u540d\u3067\u6599\u91d1\u306f\u975e\u5e38\u306b\u9ad8\u3044\u3089\u3057\u3044\u3067\u3059\u304c\u3001\u6700\u8fd1\u306f\u7121\u6599\u3067\u4f7f\u7528\u3067\u304d\u308b CDN \u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><del datetime=\"2012-01-16T06:02:40+00:00\">Croppy \u3067\u306f\u3001\u7121\u6599\u3067\u3082\u5229\u7528\u3067\u304d\u308b <strong><a href=\"https:\/\/www.cloudflare.com\/\" target=\"_blank\">CloudFlare<\/a><\/strong> \u3068\u3044\u3046 CDN \u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/del><\/p>\n<div class=\"a\">\n<h4>\u8ffd\u8a18<\/h4>\n<p>CloudFlare \u3092\u5165\u308c\u308b\u3068\u30da\u30fc\u30b8\u306e\u8868\u793a\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u4e0b\u304c\u308b\u306e\u3068\u30012\u56de\u307b\u3069 CloudFlare \u5074\u304c\u30c0\u30a6\u30f3\u3057\u305f\u305f\u3081\u7d50\u5c40\u5916\u3057\u307e\u3057\u305f\u3002\n<\/p><\/div>\n<p>CloudFlare\u306fHTML\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u307e\u305b\u3093\u304c\u3001\u753b\u50cf\u3084CSS\u3001JS\u306a\u3069\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u7ba1\u7406\u753b\u9762\u3092\u898b\u308b\u304b\u304e\u308a\u3001\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e8\u5272\u307b\u3069\u306f CDN \u5074\u3067\u3055\u3070\u3044\u3066\u304f\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><strong><a href=\"http:\/\/www.ideaxidea.com\/archives\/2011\/04\/cloudflare.html\" target=\"_blank\">\u3010\u753b\u50cf\u4ed8\u304d\u5c0e\u5165\u8a18\u3011 CloudFlare\u304c\u4fbf\u5229\u305d\u3046\u306a\u3093\u3067Wordpress\u30d6\u30ed\u30b0\u306b\u5c0e\u5165\u3057\u3066\u307f\u305f  | IDEA*IDEA<\/a><\/strong><\/p>\n<p>Nginx \u3082 CloudFlare \u3082\u3001\u304a\u91d1\u3092\u304b\u3051\u305a\u306b\u8ca0\u8377\u5bfe\u7b56\u3067\u304d\u308b\u306e\u3067\u3068\u3066\u3082\u7d20\u6674\u3089\u3057\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u3053\u308c\u3060\u3051\u8ca0\u8377\u5bfe\u7b56\u3057\u3066\u3044\u308c\u3070\u3001GIGAZINE \u3067\u7d39\u4ecb\u3055\u308c\u3088\u3046\u304c Yahoo! \u30cb\u30e5\u30fc\u30b9\u306b\u63b2\u8f09\u3055\u308c\u3088\u3046\u304c\u30b5\u30fc\u30d0\u306f\u5927\u4e08\u592b\u3067\u3059\u306d(^o^)\u3000\u2192\u3000\u63b2\u8f09\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f orz<\/p>\n<p>\u660e\u65e5\u306e <strong><a href=\"http:\/\/atnd.org\/events\/22823\" target=\"_blank\">WordPress Advent Calendar 2011<\/a><\/strong> \u306f\u2026\u306a\u3093\u3068\u3001\u7686\u3055\u3093\u3054\u5b58\u77e5\u306e @naokomc \u3055\u3093\u3053\u3068\u30de\u30af\u30e9\u30b1\u30f3\u76f4\u5b50\u3055\u3093\u3067\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web \u30b5\u30a4\u30c8\u69cb\u7bc9\u306e\u305f\u3081\u306e\u30c8\u30fc\u30bf\u30eb\u30c7\u30b6\u30a4\u30f3\u8a8c Web Designing 2011\u5e74 12\u6708\u53f7 \u306b\u3001jQuery \u00d7 WordPress \u6d3b\u7528\u4e8b\u4f8b\u3068\u3044\u3046\u3053\u3068\u3067 Croppy \u306e\u4f5c\u308a\u65b9\u3092\u63b2\u8f09\u3055\u305b\u3066\u9802\u304d\u307e\u3057\u305f\u3002 \u8a18\u4e8b\u306f2\u30da\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6639,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[22,18,23],"class_list":["post-1510","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web","tag-web","tag-wordpress","tag-23"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/stocker.jp\/diary\/wp-content\/uploads\/hm11-1.png?fit=500%2C300&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/stocker.jp\/diary\/wp-json\/wp\/v2\/posts\/1510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stocker.jp\/diary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stocker.jp\/diary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stocker.jp\/diary\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stocker.jp\/diary\/wp-json\/wp\/v2\/comments?post=1510"}],"version-history":[{"count":0,"href":"https:\/\/stocker.jp\/diary\/wp-json\/wp\/v2\/posts\/1510\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stocker.jp\/diary\/wp-json\/wp\/v2\/media\/6639"}],"wp:attachment":[{"href":"https:\/\/stocker.jp\/diary\/wp-json\/wp\/v2\/media?parent=1510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stocker.jp\/diary\/wp-json\/wp\/v2\/categories?post=1510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stocker.jp\/diary\/wp-json\/wp\/v2\/tags?post=1510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}