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 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

什麼是虛擬主機?

虛擬主機指的是使用者操作一台電腦提供放置檔案的空間....

什麼是FTP?

FTP 檔案標準傳輸協定. 簡單來說它是一個方便的工具,可以用來移動一台電腦的檔案至另外一台電腦注意!FTP 在fantastic-host.net 虛擬主機方案中的連接阜(port)均為21

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

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

美國主機比較好還是台灣?

美國為網路的發源地,故網路發展有一段歷史,頻寬與架構皆比台灣網路成熟許多,所以各地連美國的速度都是快速的,台灣網路只有在台灣本島的用戶連線才會快速,但世界連線的速度就沒有美國好,因為連外頻寬沒有...

在美國的虛擬主機之SEO與速度會比台灣主機差嗎?

網站在國外的話建議網站架設在美國,因為美國全世界的出口頻寬都比台灣大很多,在國外瀏覽美國網站速度當然優於台灣,對於SEO搜尋是不會影響的。

Powered by WHMCompleteSolution