{"id":2663,"date":"2008-11-09T14:26:01","date_gmt":"2008-11-09T12:26:01","guid":{"rendered":"http:\/\/www.roumazeilles.net\/news\/en\/wordpress\/?p=2663"},"modified":"2008-11-09T14:26:01","modified_gmt":"2008-11-09T12:26:01","slug":"php-changes","status":"publish","type":"post","link":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/2008\/11\/09\/php-changes\/","title":{"rendered":"PHP changes"},"content":{"rendered":"<p>This is what I told myself when uncovering a little PHP code fragment that stopped working on one of my web sites. So, this is a reminder for those of you inattentive programmers like me: <code>$DOCUMENT_ROOT = $HTTP_SERVER_VARS['DOCUMENT_ROOT'];<\/code> is deprecated and works no longer. You must now use the newest form: <code>$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];<\/code>.<\/p>\n<p>Be warned.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is what I told myself when uncovering a little PHP code fragment that stopped working on one of my web sites. So, this is a reminder for those of you inattentive programmers like me: $DOCUMENT_ROOT = $HTTP_SERVER_VARS[&#8216;DOCUMENT_ROOT&#8217;]; is deprecated and works no longer. You must now use the newest form: $DOCUMENT_ROOT = $_SERVER[&#8216;DOCUMENT_ROOT&#8217;];. Be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,52,57],"tags":[],"class_list":["post-2663","post","type-post","status-publish","format-standard","hentry","category-blog","category-html-and-css","category-php"],"_links":{"self":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/posts\/2663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/comments?post=2663"}],"version-history":[{"count":0,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/posts\/2663\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/media?parent=2663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/categories?post=2663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/tags?post=2663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}