{"id":3704,"date":"2018-11-04T10:15:24","date_gmt":"2018-11-04T01:15:24","guid":{"rendered":"https:\/\/www.welcart.com\/documents\/?p=3704"},"modified":"2018-11-04T10:15:24","modified_gmt":"2018-11-04T01:15:24","slug":"php-%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%81%ab%e3%81%af%e3%81%a9%e3%81%86%e3%81%97%e3%81%9f%e3%82%89","status":"publish","type":"post","link":"https:\/\/www.welcart.com\/documents\/archives\/3704","title":{"rendered":"PHP \u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3069\u3046\u3057\u305f\u3089\u826f\u3044\u3067\u3059\u304b\uff1f"},"content":{"rendered":"<p>PHP \u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\n\u6b21\u306e\u8a2d\u5b9a\u65b9\u6cd5\u306e\u3046\u3061\u3044\u305a\u308c\u304b\u4e00\u3064\u3001\u6709\u52b9\u306a\u65b9\u6cd5\u3067\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u516c\u958b\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3067\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u898b\u3048\u3066\u3057\u307e\u3046\u306e\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u4e0a\u3088\u308d\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u78ba\u8a8d\u3057\u305f\u3089\u307e\u305f\u3059\u3050\u306b\u5143\u306b\u623b\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3082\u3057\u304f\u306f\u3001PHP \u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u6b8b\u3057\u3066\u305d\u3061\u3089\u3092\u78ba\u8a8d\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u3088\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>WordPress \u306e\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3092\u30aa\u30f3\u306b\u3059\u308b<\/h2>\n<p>wp-config.php \u306eWP_DEBUG \u3092true \u306b\u3059\u308b\u3068\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>define('WP_DEBUG', true);<\/pre>\n<p>\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3092\u30aa\u30f3\u306b\u3057\u305f\u6642\u306b\u3001\u95a2\u4fc2\u306e\u306a\u3044Notice \u307e\u3067\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u30a8\u30e9\u30fc\u306e\u7279\u5b9a\u304c\u96e3\u3057\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u65b9\u6cd5\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>ini_set \u3092\u8ffd\u52a0\u3059\u308b<\/h2>\n<p>wp-config.php \u306eWP_DEBUG \u306ffalse \u306b\u3057\u3066\u3001\u5909\u308f\u308a\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>if (!ini_get('display_errors')) {\r\n    error_reporting(E_ALL ^ E_NOTICE);\r\n    ini_set('display_errors', 1);\r\n}\r\n<\/pre>\n<p>ini_set \u3067\u3046\u307e\u304f\u8868\u793a\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u6b21\u306e\u65b9\u6cd5\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>htaccess \u3092\u7de8\u96c6\u3059\u308b<\/h2>\n<p>.htaccess \u306b\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>php_flag display_errors 'On'<\/pre>\n<h2>php.ini \u3092\u7de8\u96c6\u3059\u308b<\/h2>\n<p>php.ini \u3092\u7de8\u96c6\u3059\u308b\u306e\u304c\u4e00\u756a\u78ba\u5b9f\u306a\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<pre>error_reporting  =  E_ALL &amp; ~E_NOTICE\r\ndisplay_errors = On\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>PHP \u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002 \u6b21\u306e\u8a2d\u5b9a\u65b9\u6cd5\u306e\u3046\u3061\u3044\u305a\u308c\u304b\u4e00\u3064\u3001\u6709\u52b9\u306a\u65b9\u6cd5\u3067\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002 \u305f\u3060\u3057\u3001\u516c\u958b\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3067\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u898b\u3048\u3066\u3057\u307e\u3046\u306e\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u4e0a\u3088\u308d\u3057\u304f\u3042\u308a&hellip;<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[36,54,50,47],"tags":[55,56],"class_list":["post-3704","post","type-post","status-publish","format-standard","hentry","category-faq","category-question","category-configuring-the-server","category-technical-issue","tag-55","tag-56","wp-sticky"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.welcart.com\/documents\/wp-json\/wp\/v2\/posts\/3704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.welcart.com\/documents\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.welcart.com\/documents\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.welcart.com\/documents\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.welcart.com\/documents\/wp-json\/wp\/v2\/comments?post=3704"}],"version-history":[{"count":1,"href":"https:\/\/www.welcart.com\/documents\/wp-json\/wp\/v2\/posts\/3704\/revisions"}],"predecessor-version":[{"id":3705,"href":"https:\/\/www.welcart.com\/documents\/wp-json\/wp\/v2\/posts\/3704\/revisions\/3705"}],"wp:attachment":[{"href":"https:\/\/www.welcart.com\/documents\/wp-json\/wp\/v2\/media?parent=3704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.welcart.com\/documents\/wp-json\/wp\/v2\/categories?post=3704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.welcart.com\/documents\/wp-json\/wp\/v2\/tags?post=3704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}