{"id":14,"date":"2013-03-22T23:20:19","date_gmt":"2013-03-22T23:20:19","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=14"},"modified":"2013-03-23T15:35:47","modified_gmt":"2013-03-23T15:35:47","slug":"how-to-get-the-php-current-information","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/how-to-get-the-php-current-information\/","title":{"rendered":"How to get the PHP current information"},"content":{"rendered":"<p>I&#8217;ve on many occasions in past worked with PHP and upon starting this blog realised I&#8217;d forgotten almost everything I ever knew about the language\/technology. So I&#8217;m going to add a few PHP items as and when I have to look them up or remember them.<\/p>\n<p>The first is the <a title=\"phpinfo()\" href=\"http:\/\/php.net\/manual\/en\/function.phpinfo.php\">phpinfo()<\/a> method. Simply place this method into a .php file in the following way<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;? phpinfo(); ?&gt;\r\n<\/pre>\n<p>and when this file placed on your web site, simply load the page in your web browser to see loads of PHP information for your webserver\/configuration, such as any php.ini file path&#8230;<\/p>\n<p>Talking of the which. I was having problems with this blog (assuming I&#8217;m still using a PHP based blog when you read this) when it was on godaddy. Iwas getting various timeouts when loading pages. So using the previous code I can check where the php.ini file is located (if indeed there is one) and either edit (or replace it with a file) with the following lines<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nmax_execution_time = 360     ; Maximum execution time of each script, in seconds\r\n<\/pre>\n<p>Note: the php.ini might have a version number such as php5.ini, obviously this is the file name that should be used to replace the file, add a new one or to be edited.<\/p>\n<p>Oh and this blog is no longer on godaddy due to it being horrendously slow.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve on many occasions in past worked with PHP and upon starting this blog realised I&#8217;d forgotten almost everything I ever knew about the language\/technology. So I&#8217;m going to add a few PHP items as and when I have to look them up or remember them. The first is the phpinfo() method. Simply place this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7,2],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-php","category-programming"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":4,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":56,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions\/56"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}