00001 <?php
00017 function display_phpinfo_page()
00018 {
00019 ?>
00020 <html>
00021 <head>
00022 <title>phpinfo() description page</title>
00023 <style type="text/css">
00024 p {text-align:justify}
00025 </style>
00026 </head>
00027 <body>
00028 <p>
00029 We can use phpinfo() function to see following information among other
00030 things:
00031 </p>
00032 <ul>
00033 <li>PHP version</li>
00034 <li>Location of php.ini file</li>
00035 <li>Installed libraries like MySQL, PostgreSQL, SQLite</li>
00036 <li>Default values of various constants / parameters</li>
00037 <li>Differnet server variables provided by current web server and their sample values</li>
00038 </ul>
00039
00040 <p>
00041 Click <a href="phpinfo.php" target="_blank">here</a> to see sample phpinfo() output.
00042 </p>
00043 </body>
00044 </html>
00045 <?php
00046 }
00047
00048
00049 display_phpinfo_page();
00050
00051 ?>