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 会员发现这个文章很有用
此答案有用吗?

相关文章

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

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

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

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

月流量是怎么计算呢?会不会很快就用完了?

流量大小可依照您网页的大小或数量、还有浏览者多寡来决定假如 一个网页含图片至多500KB ,那月流量15G约估计为15,000MB=15,000,000KB...

HTTP Status Codes ( 狀態碼 )

HTTP CODES - 100-101 100 - Continue ( 繼續 ) Tells the client that the first part of the...

網頁出現無效的伺服器憑證?! (google chrome)

請檢查一下電腦的系統時間是不是跑掉了,或瀏覽器設定→進階選項→HTTPS/SSL→不要打勾,檢查伺服器憑證撤銷即可解決。...