当前位置: 首页>>代码示例>>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;未经允许,请勿转载。