php |
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:
- Information about PHP compilation options and extensions.
- PHP version.
- Server information and environment (if compiled as a module).
- PHP environment.
- OS version information, paths, master and local values of configuration options.
- HTTP headers.
- PHP license.
phpinfo();