Image

Knowledge base → Information about php version, availability of modules and web server configuration

[Scripts]
Date of publication: 10.10.2023

There are several options for displaying information about the PHP version of the handler, the presence of installed modules, as well as the web server configuration.

1. The most common script containing all the information

nano info.php
<?php

phpinfo();

?>

2. Information output options

You can configure which of the information blocks should be displayed, for example:

nano info.php
<?php

phpinfo(<output>INFO_GENERAL</output>);

?>

2.1 Available options:

  • INFO_GENERAL
  • INFO_CREDITS
  • INFO_CONFIGURATION
  • INFO_MODULES
  • INFO_ENVIRONMENT
  • INFO_VARIABLES
  • INFO_LICENSE
  • INFO_ALL

By replacing an option in the script, you select a block to display information.





No Comments Yet