Exemplo n.º 1
0
 protected function setMemoryLimit()
 {
     $inimem = ini_get('memory_limit');
     $inibytes = thumbpic::returnBytes($inimem);
     $ourbytes = thumbpic::returnBytes(MEMORY_LIMIT);
     if ($inibytes < $ourbytes) {
         ini_set('memory_limit', MEMORY_LIMIT);
     }
 }
Exemplo n.º 2
0
Arquivo: index.php Projeto: a9r/Class
function thumbpic($src, $width = 0, $height = 0)
{
    thumbpic::start(array('src' => $src, 'new_width' => $width, 'new_height' => $height));
}