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

相关文章

什么是虚拟主机?

虚拟主机指的是使用者操作一台电脑提供放置档案的空间....

什么是FTP?

FTP 档案标准传输协定. 简单来说它是一个方便的工具,可以用来移动一台电脑的档案至另外一台电脑注意!FTP 在fantastic-host.net 虚拟主机方案中的连接阜(port)均为21

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

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

美国主机比较好还是台湾?

美国为网路的发源 地,故网路发展有一段历史,频宽与架构皆比台湾网路成熟许多,所以各地连美国的速度都是快速的,台湾网路只有在台湾本岛的用户连线才会快速,但世界连线的...

在美国的虚拟主机之SEO与速度会比台湾主机差吗?

网站在国外的话建议网站架设在美国,因为美国全世界的出口频宽都比台湾大很多,在国外浏览美国网站速度当然优于台湾,对于SEO搜寻是不会影响的。

Powered by WHMCompleteSolution