How to Create a phpinfo File?

In the phpinfo.php page, the PHP version can be seen at the top of the file, listing the current version of MySQL being used.

You can also use phpinfo to check specific php settings such as safe_mode and register_globals.

How to Create a phpinfo File

  1. In the public_html folder of your site, create a file named phpinfo.php.
  2. Insert one of the following selections of code into the phpinfo.php file:
    • Use the following code to show all the information about PHP.
      <?php
      phpinfo(); // This would be used to display all of the PHP information available for the installation.
      ?>
    • Use the following code to see the installed modules and their current values.
      <?php
      phpinfo(INFO_MODULES); // This would be used to display the installed modules and their current values.
      ?>
    • Use the following code to display the configurations you have set up through your php.ini or to review what's setup through the default configurations.
      <?php
      phpinfo(INFO_CONFIGURATION); // This would be used to display the configurations you have setup through your php.ini or to review what's setup through the default configurations.
      ?>
  3. Open an internet browser.
  4. Type the following into your browser's address bar:
    http://example.com/phpinfo.php

    Be sure to replace "example.com" with your actual domain.

  • 2 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

網路設計業者報價台灣的伺服器,是否真的有需要這麼貴嗎?對方告訴我,他們公司設計師習慣在這家伺服器底下工作,這樣是不是客戶就真的沒得挑了呢?

看您的網站需求,而決定空間的種類,假如您網站是多媒體有提供檔案與影音讓人線上觀看或者大型檔案下載,那您可能就需要獨立的伺服器或者VPS,那麼空間的價格可能就會比較貴一點,一般公司的官方網站虛擬主...

月流量是怎麼計算呢?會不會很快就用完了?

流量大小可依照您網頁的大小或數量、還有瀏覽者多寡來決定假如 一個網頁含圖片至多500KB ,那月流量15G約估計為15,000MB=15,000,000KB...

Discuz 7.0版塊橫排顯示版塊圖標和版塊簡介的方法

一、顯示板塊圖標1.找到templates\\default\\discuz.htm2.查找:<th...

網頁無法瀏覽?? 檢測主機是否正常運行及網頁的瀏覽速度

為什麼常常無法開啟網頁 ? 連管理介面有時候也都換斷線 ? 在無法瀏覽時您是否有查看主機是否正常運行?...

如果伺服器架美國,台灣人是否就無法設計以及進行架網?

做網頁為何一定要架設伺服器呢? 網頁+空間=線上瀏覽的網站...

Powered by WHMCompleteSolution