{"id":2722,"date":"2015-12-04T17:14:17","date_gmt":"2015-12-04T09:14:17","guid":{"rendered":"http:\/\/blog.hoyo.idv.tw\/?p=2722"},"modified":"2015-12-04T17:14:17","modified_gmt":"2015-12-04T09:14:17","slug":"%e4%bd%bf%e7%94%a8-htaccess-%e8%a8%ad%e5%ae%9a%e7%84%a1%e6%b3%95%e4%bd%bf%e7%94%a8-ini_set-%e7%9a%84%e5%8f%83%e6%95%b8","status":"publish","type":"post","link":"https:\/\/blog.hoyo.idv.tw\/?p=2722","title":{"rendered":"\u4f7f\u7528 .htaccess \u8a2d\u5b9a\u7121\u6cd5\u4f7f\u7528 ini_set() \u7684\u53c3\u6578"},"content":{"rendered":"<h2>\u7576 PHPer \u9047\u5230\u7121\u6cd5\u4fee\u6539\u4e3b\u6a5f php.ini \u7684\u60b2\u6467\u60c5\u5883<\/h2>\n<p>Hoyo \u672c\u8eab\u662f\u559c\u6b61\u76f4\u63a5\u4fee\u6539 php.ini\uff0c\u56e0\u70ba\u4e3b\u6a5f\u90fd\u662f\u81ea\u5df1\u7ba1\u7406<\/p>\n<p>\u9047\u5230\u4e3b\u6a5f\u7ba1\u7406\u54e1\u4e0d\u9858\u610f\u4fee\u6539 php.ini \u6642\uff0c\u6709\u4e9b\u8a2d\u5b9a\u53ef\u4ee5\u4f7f\u7528 ini_set() \u8a2d\u5b9a\uff0c\u4f46\u4e0d\u662f\u5168\u90e8\u90fd\u9069\u7528\uff0c\u4f8b\u5982\u4e0a\u50b3\u6700\u5927\u6a94\u6848\u9650\u5236 upload_max_filesize \uff0c\u9019\u6642\u5c31\u5fc5\u9808\u4f7f\u7528\u5176\u4ed6\u624b\u6cd5<\/p>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/13442270\/ini-setupload-max-filesize-200m-not-working-in-php\">ini_set(\u201cupload_max_filesize\u201d,\u201c200M\u201d) not working in php [duplicate]<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/14125295\/how-to-set-post-max-size-on-apache-server-with-htaccess-getting-internal-server\">How to set post_max_size on apache server with htaccess (getting internal server error)<\/a><\/li>\n<\/ul>\n<p>\u6839\u64da\u63d0\u793a\uff0c\u5f8c\u4f86\u4f7f\u7528\u7684\u624b\u6cd5\u662f\u4fee\u6539 .htaccess<\/p>\n<pre class=\"lang:default decode:true \">php_value upload_max_filesize 200M\r\nphp_value post_max_size 200M\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>--<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"2722\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;1,643&nbsp;total views<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7576 PHPer \u9047\u5230\u7121\u6cd5\u4fee\u6539\u4e3b...<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"2722\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;1,643&nbsp;total views<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[180],"tags":[225,53],"_links":{"self":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/2722"}],"collection":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2722"}],"version-history":[{"count":1,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/2722\/revisions"}],"predecessor-version":[{"id":2723,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/2722\/revisions\/2723"}],"wp:attachment":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}