Ejemplo n.º 1
0
 /**
  * Returns component tab
  *
  * @return string
  */
 public function getTab()
 {
     return $this->_memory['whole'] = bytesHuman(memory_get_peak_usage(true)) . ' / ' . bytesHuman(utils_getPhpValueInBytes(ini_get('memory_limit')));
 }
Ejemplo n.º 2
0
/**
 * Returns Upload max file size in bytes
 *
 * @return int Upload max file size in bytes
 */
function utils_getMaxFileUpload()
{
    $uploadMaxFilesize = utils_getPhpValueInBytes(ini_get('upload_max_filesize'));
    $postMaxSize = utils_getPhpValueInBytes(ini_get('post_max_size'));
    $memoryLimit = utils_getPhpValueInBytes(ini_get('memory_limit'));
    return min($uploadMaxFilesize, $postMaxSize, $memoryLimit);
}