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 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

去除Discuz7.0有無新帖版塊圖標

打開模板文件 css_common.htm,找到如下代碼: .list th { background: url({IMGDIR}/forum.gif) 5px 10px no-repeat;...

.htaccess: 重寫規則工作一貫的子域和子目錄

有沒有辦法讓規則適用於子域和子目錄?可參考下列範例自行修改 Options+FollowSymlinks-MultiViews RewriteEngineOn...

解決IE與chrome 無法正常顯示雲端主機頁面之問題

設定IE9顯示混合內容於IE9 →「網際網路選項」→「安全性」→「網際網路」→「自訂等級」→「顯示混合的內容」中,點選『啟用』即可。...

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

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

測試您的網站是否有惡意程式

Urlvoid.com 是  NoVirusThanks  這家公司發展的免費服務, 提供了20幾個偵測引擎來偵測網站的安全性,是否有惡意程式值入網站。網址:...