當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PMA_isGzHandlerEnabled函數代碼示例

本文整理匯總了PHP中PMA_isGzHandlerEnabled函數的典型用法代碼示例。如果您正苦於以下問題:PHP PMA_isGzHandlerEnabled函數的具體用法?PHP PMA_isGzHandlerEnabled怎麽用?PHP PMA_isGzHandlerEnabled使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了PMA_isGzHandlerEnabled函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: PMA_gzencodeNeeded

/**
 * Detect whether gzencode is needed; it might not be needed if
 * the server is already compressing by itself
 *
 * @return bool Whether gzencode is needed
 */
function PMA_gzencodeNeeded()
{
    /*
     * We should gzencode only if the function exists
     * but we don't want to compress twice, therefore
     * gzencode only if transparent compression is not enabled
     * and gz compression was not asked via $cfg['OBGzip']
     * but transparent compression does not apply when saving to server
     */
    if (@function_exists('gzencode') && (!@ini_get('zlib.output_compression') && !PMA_isGzHandlerEnabled() || $GLOBALS['save_on_server'])) {
        return true;
    } else {
        return false;
    }
}
開發者ID:FilipeRamosFernandes,項目名稱:phpmyadmin,代碼行數:21,代碼來源:export.lib.php

示例2: PMA_gzencodeNeeded

/**
 * Detect whether gzencode is needed; it might not be needed if
 * the server is already compressing by itself
 *
 * @return bool Whether gzencode is needed
 */
function PMA_gzencodeNeeded()
{
    /*
     * We should gzencode only if the function exists
     * but we don't want to compress twice, therefore
     * gzencode only if transparent compression is not enabled
     * and gz compression was not asked via $cfg['OBGzip']
     * but transparent compression does not apply when saving to server
     */
    $chromeAndGreaterThan43 = PMA_USR_BROWSER_AGENT == 'CHROME' && PMA_USR_BROWSER_VER >= 43;
    // see bug #4942
    if (@function_exists('gzencode') && (!@ini_get('zlib.output_compression') && !PMA_isGzHandlerEnabled() || $GLOBALS['save_on_server'] || $chromeAndGreaterThan43)) {
        return true;
    } else {
        return false;
    }
}
開發者ID:scriptpazar,項目名稱:phpmyadmin,代碼行數:23,代碼來源:export.lib.php

示例3: PMA_gzencodeNeeded

/**
 * Detect whether gzencode is needed; it might not be needed if
 * the server is already compressing by itself 
 *
 * @return bool Whether gzencode is needed 
 */
function PMA_gzencodeNeeded()
{
    if (@function_exists('gzencode') && !@ini_get('zlib.output_compression') && !PMA_isGzHandlerEnabled()) {
        return true;
    } else {
        return false;
    }
}
開發者ID:GDantas05,項目名稱:WorkSeries,代碼行數:14,代碼來源:export.php

示例4: PMA_gzencodeNeeded

/**
 * Detect whether gzencode is needed; it might not be needed if
 * the server is already compressing by itself 
 *
 * @return bool Whether gzencode is needed 
 */
function PMA_gzencodeNeeded()
{
    if (@function_exists('gzencode') && !@ini_get('zlib.output_compression') && !(function_exists('apache_get_modules') && in_array('mod_deflate', apache_get_modules())) && !PMA_isGzHandlerEnabled()) {
        return true;
    } else {
        return false;
    }
}
開發者ID:mindfeederllc,項目名稱:openemr,代碼行數:14,代碼來源:export.php


注:本文中的PMA_isGzHandlerEnabled函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。