Elgg  Version 4.3
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 
13 
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) . '&nbsp; ' . $post_max_size_warning; ?></td>
44  </tr>
45 </table>
if(!$php_log) $post_max_size
Definition: php.php:11
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
$php_log
Server PHP info.
Definition: php.php:6
elgg_get_ini_setting_in_bytes($setting)
Returns a PHP INI setting in bytes.
Definition: elgglib.php:607
$post_max_size_warning
Definition: php.php:14
$upload_max_filesize
Definition: php.php:12