{"id":6985,"date":"2012-11-07T05:26:33","date_gmt":"2012-11-07T05:26:33","guid":{"rendered":"http:\/\/2slick.com\/web\/?p=6985"},"modified":"2012-12-21T05:18:47","modified_gmt":"2012-12-21T05:18:47","slug":"how-to-see-the-php-setting-on-the-server","status":"publish","type":"post","link":"https:\/\/2slick.com\/web\/how-to-see-the-php-setting-on-the-server\/affordablewebsitestips\/tutorials","title":{"rendered":"How to see the PHP settings on the server"},"content":{"rendered":"<p>If you've&nbsp;dabbled&nbsp;in PHP, there comes times when you need to see what certain settings are on your server. You see what the server settings are by uploading a phpinfo.php file to the root directory.<\/p>\n<p>Here's what the phpinfo.php file code looks like:<\/p>\n<p>phpinfo.php<\/p>\n<p><!--DEVFMTCODE--><pre class=\"devcodeblock\" title=\"PHP\"><table class=\"devcodetools\"><tbody><tr><td>&nbsp;PHP&nbsp;|&nbsp;<\/td><td style=\"background-image:url('https:\/\/2slick.com\/web\/wp-content\/plugins\/devformatter\/img\/devformatter-copy.png');background-repeat:no-repeat;background-position:50% 50%;width:16px;height:16px;\"\/><embed id=\"ZeroClipboard1\" src=\"https:\/\/2slick.com\/web\/wp-content\/plugins\/devformatter\/_zclipboard.swf\" loop=\"false\" menu=\"false\" quality=\"best\" bgcolor=\"#ffffff\" width=\"16px\" height=\"16px\" align=\"middle\" allowScriptAccess=\"always\" allowFullScreen=\"false\" type=\"application\/x-shockwave-flash\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" flashvars=\"id=1&width=16&height=16\" wmode=\"transparent\" \/><\/td><td>&nbsp;copy&nbsp;code&nbsp;|<\/td><td style=\"cursor:pointer\" title=\"DevFormatter Plugin\" onclick=\"devfmt_credits()\">?<\/td><td width=\"99%\">&nbsp;<\/td><\/tr><\/tbody><\/table><div class=\"devcodeoverflow\"><table class=\"devcodearea\" width=\"100%\"><tr><td class=\"devcodelines\" width=\"1%\">1<\/td><td class=\"devcodelinesarea\"><pre class=\"devcode devcodeline\"><span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span><\/pre><\/td><\/tr><tr><td class=\"devcodelines devcodelinesodd devcodelinesodd\" width=\"1%\">2<\/td><td class=\"devcodelinesarea devcodelinesareaodd devcodelinesareaodd\"><pre class=\"devcode devcodeline\"><span style=\"color: #990000;\">phpinfo<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span><\/pre><\/td><\/tr><tr><td class=\"devcodelines\" width=\"1%\">3<\/td><td class=\"devcodelinesarea\"><pre class=\"devcode devcodeline\">&nbsp;<\/pre><\/td><\/tr><tr><td class=\"devcodelines devcodelinesodd devcodelinesodd\" width=\"1%\">4<\/td><td class=\"devcodelinesarea devcodelinesareaodd devcodelinesareaodd\"><pre class=\"devcode devcodeline\"><span style=\"color: #990000;\">phpinfo<\/span><span style=\"color: #009900;\">&#40;<\/span>INFO_MODULES<span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span><\/pre><\/td><\/tr><tr><td class=\"devcodelines\" width=\"1%\">5<\/td><td class=\"devcodelinesarea\"><pre class=\"devcode devcodeline\">&nbsp;<\/pre><\/td><\/tr><tr><td class=\"devcodelines devcodelinesodd devcodelinesodd\" width=\"1%\">6<\/td><td class=\"devcodelinesarea devcodelinesareaodd devcodelinesareaodd\"><pre class=\"devcode devcodeline\"><span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span><\/pre><\/td><\/tr><\/table><\/div><\/pre><!--END_DEVFMTCODE--><\/p>\n<p>source:&nbsp;<a href=\"http:\/\/php.net\/manual\/en\/function.phpinfo.php\">http:\/\/php.net\/manual\/en\/function.phpinfo.php<\/a><\/p>\n<p>Use ftp to upload this file to your hosting account's root directory. You can see your server's settings my navigating to the absolute path to the file in a web&nbsp;browser.<\/p>\n<p><strong>Example:<\/strong> <span style=\"color: red;\">http:\/\/www.mywebsite.com<\/span>\/phpinfo.php<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve&nbsp;dabbled&nbsp;in PHP, there comes times when you need to see what certain settings are on your server. You see what the server settings are by uploading a phpinfo.php file to the root directory. Here&#8217;s what the phpinfo.php file code looks like: phpinfo.php &nbsp;PHP&nbsp;|&nbsp;&nbsp;copy&nbsp;code&nbsp;|?&nbsp;1&lt;?php2phpinfo&#40;&#41;;3&nbsp;4phpinfo&#40;INFO_MODULES&#41;;5&nbsp;6?&gt; source:&nbsp;http:\/\/php.net\/manual\/en\/function.phpinfo.php Use ftp to upload this file to your hosting account&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6986,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,492],"tags":[592,593,103],"class_list":["post-6985","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-websites-2","tag-php","tag-server","tag-web-hosting"],"_links":{"self":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/6985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/comments?post=6985"}],"version-history":[{"count":5,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/6985\/revisions"}],"predecessor-version":[{"id":8060,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/6985\/revisions\/8060"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/media\/6986"}],"wp:attachment":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/media?parent=6985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/categories?post=6985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/tags?post=6985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}