O'Reilly logo

Programming PHP, 3rd Edition by Peter MacIntyre, Kevin Tatroe, Rasmus Lerdorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

phpinfo

Synopsis

bool phpinfo([int what])

Outputs a great deal 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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required