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 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

停用網頁裡的Javascript看Java是否造成網頁瀏覽變慢的主因?!

現在的網站,大都使用了Javascript語言來增加廣告收益或者是網頁特效,但過多的Javascript會造成網頁開啟速度變慢、用戶端CPU及記憶體的消耗,為了檢測是網站主機的速度或者是第三方主...

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

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

網站出現了509 Bandwidth Limit Exceeded 的訊息?

網站出現了下列錯誤訊息,表示您的網站流量已經超出您所購買之方案限制,解決方法1.升級方案 2.等到下個月後流量重新計算 網站即可正常瀏覽。 Bandwidth Limit Exceeded...

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

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

使用防火牆Phpwind 網站如何獲取用戶的真實IP?

使用WAF後,用戶訪問網站的是通過WAF服務器間接訪問網站服務器的,Phpwind論壇可能會在獲取用戶IP時,直接獲取WAF的IP,而不能直接獲取到用戶的真實IP,在此提出一些解決方案。...