{"id":700,"date":"2012-06-07T11:15:01","date_gmt":"2012-06-07T03:15:01","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=700"},"modified":"2012-06-07T11:15:01","modified_gmt":"2012-06-07T03:15:01","slug":"php%e5%a6%82%e4%bd%95%e5%85%b3%e9%97%adnotice%e7%ba%a7%e5%88%ab%e7%9a%84%e9%94%99%e8%af%af%e6%8f%90%e7%a4%ba","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/700","title":{"rendered":"PHP\u5982\u4f55\u5173\u95ednotice\u7ea7\u522b\u7684\u9519\u8bef\u63d0\u793a"},"content":{"rendered":"
1\u3001\u5728php.ini\u6587\u4ef6\u4e2d\u6539\u52a8error_reporting 1\u3001\u5728php.ini\u6587\u4ef6\u4e2d\u6539\u52a8error_reporting \u6539\u4e3a\uff1a error_reporting=E_ALL & ~E_NOTICE 2\u3001\u5982\u679c\u4f60\u4e0d\u80fd\u64cd\u4f5cphp.ini\u6587\u4ef6\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u65b9\u6cd5 \u5728\u4f60\u60f3\u7981\u6b62notice\u9519\u8bef\u63d0\u793a\u7684\u9875\u9762\u4e2d\u52a0\u5165\u5982\u4e0b\u4ee3\u7801\uff1a \/* Report all errors except E_NOTICE *\/ error_reporting(E_ALL^E_NOTICE);<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,9],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/700"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=700"}],"version-history":[{"count":2,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/700\/revisions"}],"predecessor-version":[{"id":702,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/700\/revisions\/702"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=700"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\n\u6539\u4e3a\uff1a
\nerror_reporting=E_ALL & ~E_NOTICE
\n2\u3001\u5982\u679c\u4f60\u4e0d\u80fd\u64cd\u4f5cphp.ini\u6587\u4ef6\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u65b9\u6cd5
\n\u5728\u4f60\u60f3\u7981\u6b62notice\u9519\u8bef\u63d0\u793a\u7684\u9875\u9762\u4e2d\u52a0\u5165\u5982\u4e0b\u4ee3\u7801\uff1a
\n\/* Report all errors except E_NOTICE *\/
\nerror_reporting(E_ALL^E_NOTICE);