PHP configuration information using phpinfo()

PHP provides us with a built-in function phpinfo() which gives us the details about the PHP version and PHP configuration of PHP installed in our system. To know about the Configurations and PHP version which is installed in your computer, a simple PHP script can be used. The script consists of a PHP function called “phpinfo()” which outputs information about PHP’s configuration. The phpinfo() function is also useful in the debugging process.  

 

This function generally outputs a large amount of information, such as:

  1. Information about PHP compilation options and extensions.
  2. PHP version.
  3. Server information and environment (if compiled as a module).
  4. PHP environment.
  5. OS version information, paths, master and local values of configuration options.
  6. HTTP headers.
  7. PHP license.

 

phpinfo();

31-July 11:46 PM 528 Views

 Prev question

Next question