Credits
Operating system of the Web server
Extensions compiled into PHP executable
Every configuration variable
Every environment variable
Apache variables if running as an Apache module
HTTP headers
Table 8.13. Flags for phpcredits
INFO_GENERAL
INFO_CREDITS
INFO_CONFIGURATION
INFO_MODULES
INFO_ENVIRONMENT
INFO_VARIABLES
INFO_LICENSE
Calling phpinfo is a good way to find out which environment variables are available to
you.
<?
phpinfo();
?>
string phpversion()
The phpversion function returns a string that describes the version of PHP executing the
script.
<?
print("PHP version". phpversion(). "
\n");
<?
print_r(expression)
The print_r function prints the value of an expression. If the expression is a string,
integer, or double, the simple representation of it is sent to the browser. If the expression