Go to the source code of this file.
Functions | |
| get_server ($var1) | |
| This function looks for given variable in server variables. | |
| print_variable ($var1) | |
| This function echoes or prints list items for given server variable. | |
| show_server_page () | |
| This function displays HTML page with values of various server variables to demonstrate information about client / server that is available to PHP interpreter. | |
Variables | |
| $server_variables | |
| This array is used to store list of server variables to be displayed. | |
We can use these variables to get information about current client or server.
Definition in file index.php.
| get_server | ( | $ | var1 | ) |
This function looks for given variable in server variables.
If variable if found its value is returned else empty string "" is returned.
| var1 | Variable to be looked in SERVER variables array. |
Definition at line 35 of file index.php.
Referenced by get_remote_address(), and print_variable().
| print_variable | ( | $ | var1 | ) |
This function echoes or prints list items for given server variable.
This make generation of list very easy.
| var1 | Name of server variable for which list item should be echoed. |
Definition at line 78 of file index.php.
References get_server().
Referenced by show_server_page().
| show_server_page | ( | ) |
This function displays HTML page with values of various server variables to demonstrate information about client / server that is available to PHP interpreter.
Definition at line 49 of file index.php.
References $server_variables, and print_variable().
| $server_variables |
Initial value:
array(
'HTTP_HOST',
'HTTP_USER_AGENT',
'HTTP_ACCEPT_ENCODING',
'HTTP_CONNECTION',
'HTTP_REFERER',
'HTTP_COOKIE',
'SERVER_SIGNATURE',
'DOCUMENT_ROOT',
'REMOTE_ADDR',
'REMOTE_PORT',
'SCRIPT_FILENAME',
'REQUEST_URI',
'SCRIPT_NAME'
)
Definition at line 12 of file index.php.
Referenced by show_server_page().
1.4.7