本文整理汇总了PHP中gz_output函数的典型用法代码示例。如果您正苦于以下问题:PHP gz_output函数的具体用法?PHP gz_output怎么用?PHP gz_output使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gz_output函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
while ($mm_get = _fetch($mm_qry)) {
if ($mm_lastCoord != $mm_get['gmaps_koord']) {
if ($i > 0) {
$mm_coords .= ',';
$mm_infos .= "</tr>','<tr>";
}
$mm_infos .= '<td><b style="font-size:13px"> ' . re($mm_get['city']) . '</td></tr><tr>';
$mm_coords .= 'new google.maps.LatLng' . $mm_get['gmaps_koord'];
$realCount++;
} else {
if ($markerCount > 0) {
$mm_markerIcon .= ',';
}
$mm_markerIcon .= $realCount - 1 . ':true';
$markerCount++;
}
$userInfos = '<b>' . rawautor($mm_get['id']) . '</b><br /><b>' . _position . ':</b> ' . getrank($mm_get['id']) . '<br />' . userpic($mm_get['id']);
$mm_infos .= '<td><div id="memberMapInner">' . $userInfos . '</div></td>';
$mm_lastCoord = $mm_get['gmaps_koord'];
$i++;
}
$mm_infos .= "</tr>'";
$index = show($dir . "/membermap", array('head' => _membermap, 'mm_coords' => $mm_coords, 'mm_infos' => $mm_infos, 'mm_markerIcon' => $mm_markerIcon));
## SETTINGS ##
$title = $pagetitle . " - " . $where . "";
$time_end = generatetime();
$time = round($time_end - $time_start, 4);
page($index, $title, $where, $time);
## OUTPUT BUFFER END ##
gz_output();
示例2: Session
$session = new Session("config/config.ser");
//Wie soll Caching benutzt werden
if (strlen($HTTP_SERVER_VARS['REQUEST_URI']) > 0 && sizeof($_POST) == 0 && sizeof($_GET) == 0 && false) {
$session->smarty->caching = true;
if ($clear_cache) {
$session->smarty->clear_all_cache();
}
$session->smarty->cache_lifetime = -1;
$cache_id = str_replace("/", "|", $HTTP_SERVER_VARS['REQUEST_URI']);
if ($session->smarty->is_cached($session->config->theme, $cache_id)) {
$cache = true;
$session->smarty->display($session->config->theme, $cache_id);
} else {
$cache = false;
$page =& $session->getActPage();
$session->smarty->assign("pageObject", $page);
$session->smarty->assign("header", $session->header);
$session->smarty->assign("config", $session->config);
$session->smarty->assign("site", $session->site);
$session->smarty->display($session->config->theme, $cache_id);
}
} else {
$page =& $session->getActPage();
$session->smarty->assign("pageObject", $page);
$session->smarty->assign("header", $session->header);
$session->smarty->assign("config", $session->config);
$session->smarty->assign("site", $session->site);
$session->smarty->display($session->config->theme);
}
gz_output(9, 1, 1);
//Compression Level, ShowSpeed, ShowCompression