{"id":99,"date":"2014-03-15T02:35:34","date_gmt":"2014-03-15T10:35:34","guid":{"rendered":"http:\/\/www.tech.dimprash.com\/?p=99"},"modified":"2014-08-08T01:27:40","modified_gmt":"2014-08-08T09:27:40","slug":"different-types-of-errors-in-php","status":"publish","type":"post","link":"http:\/\/www.tech.dimprash.com\/?p=99","title":{"rendered":"Different types of errors in PHP"},"content":{"rendered":"<p>There are three basic types of runtime errors in PHP:<\/p>\n<p>1. Notices: These are small, non-critical errors that PHP encounters while executing a script &#8211; for example, accessing a variable that has not yet been defined. By default, such errors are not displayed to the user at all &#8211; although the default behavior can be changed.<\/p>\n<p>2. Warnings: Warnings are more severe errors like attempting to include() a file which does not exist. By default, these errors are displayed to the user, but they do not result in script termination.<\/p>\n<p>3. Fatal errors: These are critical errors &#8211; for example, instantiating an object of a non-existent class, or calling a non-existent function. These errors cause the immediate termination of the script, and PHP&#8217;s default behavior is to display them to the user when they take place.<\/p>\n<p>Can be changed by<br \/>\na) php statement error_reporting \u2014 Sets which PHP errors are reported<br \/>\nb) php.ini : error_reporting = E_ALL <\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are three basic types of runtime errors in PHP: 1. Notices: These are small, non-critical errors that PHP encounters while executing a script &#8211; for example, accessing a variable that has not yet been defined. By default, such errors are not displayed to the user at all &#8211; although the default behavior can be &hellip; <a href=\"http:\/\/www.tech.dimprash.com\/?p=99\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Different types of errors in PHP<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=99"}],"version-history":[{"count":3,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":295,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions\/295"}],"wp:attachment":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}