Elgg  Version 1.9
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  // @todo show a link to something like http://nigel.mcnie.name/blog/uploadmaxfilesizepostmaxsize-experimentation ?
17  $post_max_size_warning = elgg_echo('admin:server:warning:post_max_too_small');
18 }
19 
20 ?>
21 <table class="elgg-table-alt">
22  <tr class="odd">
23  <td><b><?php echo elgg_echo('admin:server:label:php_version'); ?> :</b></td>
24  <td><?php echo phpversion(); ?></td>
25  </tr>
26  <tr class="even">
27  <td><b><?php echo elgg_echo('admin:server:label:php_ini'); ?> :</b></td>
28  <td><?php echo php_ini_loaded_file(); ?></td>
29  </tr>
30  <tr class="odd">
31  <td><b><?php echo elgg_echo('admin:server:label:php_log'); ?> :</b></td>
32  <td><?php echo $php_log; ?></td>
33  </tr>
34  <tr class="even">
35  <td><b><?php echo elgg_echo('admin:server:label:mem_avail'); ?> :</b></td>
36  <td><?php echo number_format(elgg_get_ini_setting_in_bytes('memory_limit')); ?></td>
37  </tr>
38  <tr class="odd">
39  <td><b><?php echo elgg_echo('admin:server:label:mem_used'); ?> :</b></td>
40  <td><?php echo number_format(memory_get_peak_usage()); ?></td>
41  </tr>
42  <tr class="even">
43  <td><b><?php echo elgg_echo('admin:server:label:post_max_size'); ?> :</b></td>
44  <td><?php echo number_format($post_max_size); ?></td>
45  </tr>
46  <tr class="odd">
47  <td><b><?php echo elgg_echo('admin:server:label:upload_max_filesize'); ?> :</b></td>
48  <td><?php echo number_format($upload_max_filesize) . '&nbsp; ' . $post_max_size_warning; ?></td>
49  </tr>
50 </table>
if(!$php_log) $post_max_size
Definition: php.php:11
$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:1542
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
b
Definition: admin.php:56
$post_max_size_warning
Definition: php.php:14
elgg echo
Translates a string.
Definition: languages.js:43
td
Definition: admin.php:63
$upload_max_filesize
Definition: php.php:12
elgg table alt tr
Definition: admin.php:412
table
Definition: admin.php:59