{"id":3742,"date":"2014-03-30T05:06:53","date_gmt":"2014-03-30T05:06:53","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/php-oop-programming-question-collection-of-common-programming-errors\/"},"modified":"2014-03-30T05:06:53","modified_gmt":"2014-03-30T05:06:53","slug":"php-oop-programming-question-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/php-oop-programming-question-collection-of-common-programming-errors\/","title":{"rendered":"PHP OOP programming question-Collection of common programming errors"},"content":{"rendered":"<p>Hi I was given a link to php classes. I am trying to make a domain availability checker. I managed to get a domain whois class from there but having a problem running it. I have included the class in my page, instatiated it and tried to run the example code. When i load it, it is displaying the class on my site and then below saying: Fatal error: Class &#8216;domain&#8217; not found in C:\\wamp\\www\\tes.php on line 8. I don&#8217;t get it my path is obviously right if it can display the class on screen.<\/p>\n<p>Heres my code. Please bear in mind this is the example code that was supplied with the class.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi I was given a link to php classes. I am trying to make a domain availability checker. I managed to get a domain whois class from there but having a problem running it. I have included the class in my page, instatiated it and tried to run the example code. When i load it, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3742","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3742"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3742\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}