2023-04-03 09:47:23 +00:00
|
|
|
|
<?php
|
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
|
ini_set('display_errors', 1);
|
|
|
|
|
|
2024-11-30 11:42:51 +00:00
|
|
|
|
echo '<h1 style="text-align: center;">Welcome to PHP!</h1>';
|
|
|
|
|
echo '<h2>Version Information</h2>';
|
2023-04-03 09:47:23 +00:00
|
|
|
|
|
|
|
|
|
echo '<ul>';
|
2024-11-30 11:42:51 +00:00
|
|
|
|
echo '<li>PHP Version:', PHP_VERSION, '</li>';
|
2023-04-03 09:47:23 +00:00
|
|
|
|
echo '</ul>';
|
|
|
|
|
|
2024-11-30 11:42:51 +00:00
|
|
|
|
echo '<h2>Installed Extensions</h2>';
|
2023-04-03 09:47:23 +00:00
|
|
|
|
printExtensions();
|
|
|
|
|
|
|
|
|
|
function printExtensions()
|
|
|
|
|
{
|
|
|
|
|
echo '<ol>';
|
|
|
|
|
foreach (get_loaded_extensions() as $i => $name) {
|
|
|
|
|
echo "<li>", $name, '=', phpversion($name), '</li>';
|
|
|
|
|
}
|
|
|
|
|
echo '</ol>';
|
|
|
|
|
}
|