{"id":12936,"date":"2024-01-16T08:55:45","date_gmt":"2024-01-16T08:55:45","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=12936"},"modified":"2026-02-26T14:02:11","modified_gmt":"2026-02-26T14:02:11","slug":"how-to-view-php-settings-using-the-phpinfo-function","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/","title":{"rendered":"How to View PHP Settings Using the phpinfo() Function"},"content":{"rendered":"<p><span data-contrast=\"auto\">This article offers instructions on efficiently utilizing the phpinfo() function to access complete details about PHP configurations and other related information. This becomes essential when verifying PHP settings in the course of web development.\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><strong>Let us follow the steps-\u00a0<\/strong><\/p>\n<ol>\n<li><span class=\"TextRun SCXW72150821 BCX0\" lang=\"EN-IN\" xml:lang=\"EN-IN\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW72150821 BCX0\">Generate<\/span><span class=\"NormalTextRun SCXW72150821 BCX0\"> a file that <\/span><span class=\"NormalTextRun SCXW72150821 BCX0\">comprises<\/span><span class=\"NormalTextRun SCXW72150821 BCX0\"> the following code-<\/span><\/span><span class=\"EOP SCXW72150821 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\"><span class=\"EOP SCXW72150821 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\"><br \/>\n<\/span><\/span><span data-contrast=\"auto\">&lt;?php<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><span data-contrast=\"auto\">\u00a0\u00a0\u00a0 phpinfo();<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">?&gt;<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/li>\n<li><span class=\"TextRun SCXW267672684 BCX0\" lang=\"EN-IN\" xml:lang=\"EN-IN\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW267672684 BCX0\">Save the file with a name like <\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW267672684 BCX0\">info.php<\/span><span class=\"NormalTextRun SCXW267672684 BCX0\">.<\/span><\/span><span class=\"EOP SCXW267672684 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/li>\n<li><span class=\"NormalTextRun SCXW203669099 BCX0\">Transfer the file to your <\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW203669099 BCX0\">public_html<\/span><span class=\"NormalTextRun SCXW203669099 BCX0\"> directory.<\/span><\/li>\n<li><span class=\"TextRun SCXW112471424 BCX0\" lang=\"EN-IN\" xml:lang=\"EN-IN\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW112471424 BCX0\">Open your browser and navigate to <\/span><\/span><span class=\"TextRun Underlined SCXW112471424 BCX0\" lang=\"EN-IN\" xml:lang=\"EN-IN\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW112471424 BCX0\" data-ccp-charstyle=\"Hyperlink\">http:\/\/example.com\/info.php<\/span><\/span><span class=\"TextRun SCXW112471424 BCX0\" lang=\"EN-IN\" xml:lang=\"EN-IN\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW112471424 BCX0\">, replacing <\/span><span class=\"NormalTextRun SCXW112471424 BCX0\">\u201cexample.com\u201d with your website\u2019<\/span><span class=\"NormalTextRun SCXW112471424 BCX0\">s domain name. The page will present extensive details about the PHP installation.<\/span><\/span><\/li>\n<\/ol>\n<p><span data-contrast=\"auto\">Important notification- As a security precaution, it is advisable to deactivate any requests of the phpinfo() function once the development and testing phases of your website are concluded.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">In this manner, you can view PHP settings using the phpinfo() function. Hope you grasped this article well. However, if you still have any difficulty, get in touch with our support staff.\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article offers instructions on efficiently utilizing the phpinfo() function to access complete details about PHP configurations and other related information. This becomes essential when verifying PHP settings in the&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[666],"tags":[1506],"class_list":["post-12936","post","type-post","status-publish","format-standard","hentry","category-general","tag-view-php-settings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to View PHP Settings Using the phpinfo() Function<\/title>\n<meta name=\"description\" content=\"This article offers instructions on efficiently utilizing the phpinfo() function to access complete details about PHP configurations and other related information.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to View PHP Settings Using the phpinfo() Function\" \/>\n<meta property=\"og:description\" content=\"This article offers instructions on efficiently utilizing the phpinfo() function to access complete details about PHP configurations and other related information.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-16T08:55:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:11+00:00\" \/>\n<meta name=\"author\" content=\"Paul Lopez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Lopez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-view-php-settings-using-the-phpinfo-function\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-view-php-settings-using-the-phpinfo-function\\\/\"},\"author\":{\"name\":\"Paul Lopez\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/566ccff9a2fae4af852be8097b179813\"},\"headline\":\"How to View PHP Settings Using the phpinfo() Function\",\"datePublished\":\"2024-01-16T08:55:45+00:00\",\"dateModified\":\"2026-02-26T14:02:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-view-php-settings-using-the-phpinfo-function\\\/\"},\"wordCount\":167,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"View PHP Settings\"],\"articleSection\":[\"General Discussion\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-view-php-settings-using-the-phpinfo-function\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-view-php-settings-using-the-phpinfo-function\\\/\",\"name\":\"How to View PHP Settings Using the phpinfo() Function\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2024-01-16T08:55:45+00:00\",\"dateModified\":\"2026-02-26T14:02:11+00:00\",\"description\":\"This article offers instructions on efficiently utilizing the phpinfo() function to access complete details about PHP configurations and other related information.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-view-php-settings-using-the-phpinfo-function\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-view-php-settings-using-the-phpinfo-function\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-view-php-settings-using-the-phpinfo-function\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General Discussion\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/general\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to View PHP Settings Using the phpinfo() Function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/566ccff9a2fae4af852be8097b179813\",\"name\":\"Paul Lopez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"caption\":\"Paul Lopez\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/paullopez\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to View PHP Settings Using the phpinfo() Function","description":"This article offers instructions on efficiently utilizing the phpinfo() function to access complete details about PHP configurations and other related information.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/","og_locale":"en_US","og_type":"article","og_title":"How to View PHP Settings Using the phpinfo() Function","og_description":"This article offers instructions on efficiently utilizing the phpinfo() function to access complete details about PHP configurations and other related information.","og_url":"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2024-01-16T08:55:45+00:00","article_modified_time":"2026-02-26T14:02:11+00:00","author":"Paul Lopez","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Paul Lopez","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/"},"author":{"name":"Paul Lopez","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/566ccff9a2fae4af852be8097b179813"},"headline":"How to View PHP Settings Using the phpinfo() Function","datePublished":"2024-01-16T08:55:45+00:00","dateModified":"2026-02-26T14:02:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/"},"wordCount":167,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["View PHP Settings"],"articleSection":["General Discussion"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/","url":"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/","name":"How to View PHP Settings Using the phpinfo() Function","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2024-01-16T08:55:45+00:00","dateModified":"2026-02-26T14:02:11+00:00","description":"This article offers instructions on efficiently utilizing the phpinfo() function to access complete details about PHP configurations and other related information.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-to-view-php-settings-using-the-phpinfo-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"General Discussion","item":"https:\/\/www.bodhost.com\/kb\/category\/general\/"},{"@type":"ListItem","position":2,"name":"How to View PHP Settings Using the phpinfo() Function"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/566ccff9a2fae4af852be8097b179813","name":"Paul Lopez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","caption":"Paul Lopez"},"url":"https:\/\/www.bodhost.com\/kb\/author\/paullopez\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/12936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=12936"}],"version-history":[{"count":2,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/12936\/revisions"}],"predecessor-version":[{"id":12942,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/12936\/revisions\/12942"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=12936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=12936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=12936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}