mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
(php_info_aolserver): add more information from the server context
This commit is contained in:
parent
604c14ab00
commit
90087382e4
1 changed files with 21 additions and 1 deletions
|
@ -187,7 +187,27 @@ php_ns_sapi_read_cookies(SLS_D)
|
|||
|
||||
static void php_info_aolserver(ZEND_MODULE_INFO_FUNC_ARGS)
|
||||
{
|
||||
PUTS("AOLserver SAPI module ($Id$)<br>");
|
||||
char buf[512];
|
||||
int uptime = Ns_InfoUptime();
|
||||
|
||||
PUTS("<table border=5 width=600>\n");
|
||||
php_info_print_table_row(2, "SAPI module version", "$Id$");
|
||||
php_info_print_table_row(2, "Build date", Ns_InfoBuildDate());
|
||||
php_info_print_table_row(2, "Config file path", Ns_InfoConfigFile());
|
||||
php_info_print_table_row(2, "Error Log path", Ns_InfoErrorLog());
|
||||
php_info_print_table_row(2, "Installation path", Ns_InfoHomePath());
|
||||
php_info_print_table_row(2, "Hostname of server", Ns_InfoHostname());
|
||||
php_info_print_table_row(2, "Source code label", Ns_InfoLabel());
|
||||
php_info_print_table_row(2, "Server platform", Ns_InfoPlatform());
|
||||
snprintf(buf, 511, "%s/%s", Ns_InfoServerName(), Ns_InfoServerVersion());
|
||||
php_info_print_table_row(2, "Server version", buf);
|
||||
snprintf(buf, 511, "%d day(s), %02d:%02d:%02d",
|
||||
uptime / 86400,
|
||||
(uptime / 3600) % 24,
|
||||
(uptime / 60) % 60,
|
||||
uptime % 60);
|
||||
php_info_print_table_row(2, "Server uptime", buf);
|
||||
PUTS("</table>");
|
||||
}
|
||||
|
||||
static zend_module_entry php_aolserver_module = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue