//获取mysql数据库版本信息
$mysql_version = db()->query(‘SELECT VERSION() AS ver’);
$config = [
//当前运行的域名,如:xxx.com(不带http://)
‘url’ => $_SERVER[‘HTTP_HOST’],
//项目所在文件夹路径
‘document’ => $_SERVER[‘DOCUMENT_ROOT’],
//php版本信息
‘server_os’ => PHP_OS,
//服务器端口
‘server_port’ => $_SERVER[‘SERVER_PORT’],
//服务器环境
‘server_soft’ => $_SERVER[‘SERVER_SOFTWARE’],
‘php_version’ => PHP_VERSION,
‘mysql_version’ => $mysql_version[0][‘ver’],
‘max_upload_size’ => ini_get(‘upload_max_filesize’)
];
//获取mysql数据库版本信息
$mysql_version = db()->query('SELECT VERSION() AS ver');
$config = [
//当前运行的域名,如:xxx.com(不带http://)
'url' => $_SERVER['HTTP_HOST'],
//项目所在文件夹路径
'document' => $_SERVER['DOCUMENT_ROOT'],
//php版本信息
'server_os' => PHP_OS,
//服务器端口
'server_port' => $_SERVER['SERVER_PORT'],
//服务器环境
'server_soft' => $_SERVER['SERVER_SOFTWARE'],
'php_version' => PHP_VERSION,
'mysql_version' => $mysql_version[0]['ver'],
'max_upload_size' => ini_get('upload_max_filesize')
];
- 完结
- thinks