Name

phpinfo

Synopsis

void phpinfo([int what])

Outputs a whole bunch of information about the state of the current PHP environment, including loaded extensions, compilation options, version, server information, and so on. If specified, what can limit the output to specific pieces of information; what may contain several options ORed together. The possible values of what are:

INFO_ALL (default)

All information

INFO_GENERAL

General information about PHP

INFO_CREDITS

Credits for PHP, including the authors

INFO_CONFIGURATION

Configuration and compilation options

INFO_MODULES

Currently loaded extensions

INFO_ENVIRONMENT

Information about the PHP environment

INFO_VARIABLES

A list of the current variables and their values

INFO_LICENSE

The PHP license

Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.