Elgg
Version 6.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
admin
server
php.php
Go to the documentation of this file.
1
<?php
6
$php_log
= ini_get(
'error_log'
);
7
if
(!
$php_log
) {
8
$php_log
=
elgg_echo
(
'admin:server:error_log'
);
9
}
10
11
$post_max_size
=
elgg_get_ini_setting_in_bytes
(
'post_max_size'
);
12
$upload_max_filesize
=
elgg_get_ini_setting_in_bytes
(
'upload_max_filesize'
);
13
14
$post_max_size_warning
=
''
;
15
if
(
$upload_max_filesize
>
$post_max_size
) {
16
$post_max_size_warning
=
elgg_echo
(
'admin:server:warning:post_max_too_small'
);
17
}
18
19
?>
20
<table
class
=
"elgg-table-alt"
>
21
<tr>
22
<td><b><?=
elgg_echo
(
'admin:server:label:php_version'
); ?></b></td>
23
<td><?= phpversion(); ?></td>
24
</tr>
25
<tr>
26
<td><b><?=
elgg_echo
(
'admin:server:label:php_ini'
); ?></b></td>
27
<td><?= php_ini_loaded_file(); ?></td>
28
</tr>
29
<tr>
30
<td><b><?=
elgg_echo
(
'admin:server:label:php_log'
); ?></b></td>
31
<td><?=
$php_log
; ?></td>
32
</tr>
33
<tr>
34
<td><b><?=
elgg_echo
(
'admin:server:label:mem_avail'
); ?></b></td>
35
<td><?= number_format(
elgg_get_ini_setting_in_bytes
(
'memory_limit'
)); ?></td>
36
</tr>
37
<tr>
38
<td><b><?=
elgg_echo
(
'admin:server:label:post_max_size'
); ?></b></td>
39
<td><?= number_format(
$post_max_size
); ?></td>
40
</tr>
41
<tr>
42
<td><b><?=
elgg_echo
(
'admin:server:label:upload_max_filesize'
); ?></b></td>
43
<td><?= number_format(
$upload_max_filesize
) .
' '
.
$post_max_size_warning
; ?></td>
44
</tr>
45
</table>
$post_max_size
if(!$php_log) $post_max_size
Definition:
php.php:11
elgg_echo
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition:
languages.php:17
$php_log
$php_log
Server PHP info.
Definition:
php.php:6
elgg_get_ini_setting_in_bytes
elgg_get_ini_setting_in_bytes(string $setting)
Returns a PHP INI setting in bytes.
Definition:
elgglib.php:319
$post_max_size_warning
$post_max_size_warning
Definition:
php.php:14
$upload_max_filesize
$upload_max_filesize
Definition:
php.php:12
Generated on Mon Oct 7 2024 00:00:27 for Elgg by
1.8.11