This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standard_personals. It's free and painless.
Dave | 02 January, 2005 05:51
If you build a website on your server using php here's a useful function you can call to display information about your php setup.
phpinfo();
It displays a vast amount of information about PHP and its current state. This includes:
PHP compilation options
Extensions
PHP version
Server information
PHP environment
OS version information
Configuration options
HTTP headers
PHP License.
Due to the fact that every system is setup differently, phpinfo() can be used to check configuration settings and available predefined variables.
phpinfo is a valuable debugging tool as it contains all GET, POST, Cookie and Server data.
The output may be customized by passing one or more of the following constants in the optional what parameter.
INFO_GENERAL - The configuration line, php.ini location, build date, Web Server, System and more.
INFO_CREDITS - PHP 4 Credits.
INFO_CONFIGURATION - Current Local and Master values for PHP directives.
INFO_MODULES - Loaded modules and their settings.
INFO_ENVIRONMENT - Environment Variable information.
INFO_VARIABLES - Shows all predefined variables.
INFO_LICENSE - PHP License information.
INFO_ALL - Shows all of the above (This is the default).
Please note, if your site is on a shared server you may not be able to see some of all of the above information about your php setup.
To call the function create a web page with the following code:
// Show all PHP information
phpinfo();
?>
Save the page with whatever name you like (be sure to use the .php extention) then upload it to your site.
| « | October 2008 | » | ||||
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |