mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-15 09:18:59 +08:00
25 lines
511 B
PHP
25 lines
511 B
PHP
|
<?php
|
|||
|
error_reporting(E_ALL);
|
|||
|
ini_set('display_errors', 1);
|
|||
|
|
|||
|
echo '<h1 style="text-align: center;">欢迎使用 PHP!</h1>';
|
|||
|
echo '<h2>版本信息</h2>';
|
|||
|
|
|||
|
echo '<ul>';
|
|||
|
echo '<li>PHP版本:', PHP_VERSION, '</li>';
|
|||
|
echo '</ul>';
|
|||
|
|
|||
|
echo '<h2>已安装扩展</h2>';
|
|||
|
printExtensions();
|
|||
|
|
|||
|
/**
|
|||
|
* 获取已安装扩展列表
|
|||
|
*/
|
|||
|
function printExtensions()
|
|||
|
{
|
|||
|
echo '<ol>';
|
|||
|
foreach (get_loaded_extensions() as $i => $name) {
|
|||
|
echo "<li>", $name, '=', phpversion($name), '</li>';
|
|||
|
}
|
|||
|
echo '</ol>';
|
|||
|
}
|