当前位置: 首页>>代码示例>>PHP>>正文


PHP PMA_DBI_close函数代码示例

本文整理汇总了PHP中PMA_DBI_close函数的典型用法代码示例。如果您正苦于以下问题:PHP PMA_DBI_close函数的具体用法?PHP PMA_DBI_close怎么用?PHP PMA_DBI_close使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了PMA_DBI_close函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: PMA_exitNavigationFrame

/**
 * finish and cleanup navigation.php script execution
 *
 * @uses $GLOBALS['controllink'] to close it
 * @uses $GLOBALS['userlink'] to close it
 * @uses PMA_outBufferPost()
 * @uses PMA_DBI_close()
 * @access private only to be used in navigation.php
 */
function PMA_exitNavigationFrame()
{
    echo '</body></html>';
    // Close MySQL connections
    if (isset($GLOBALS['controllink']) && $GLOBALS['controllink']) {
        @PMA_DBI_close($GLOBALS['controllink']);
    }
    if (isset($GLOBALS['userlink']) && $GLOBALS['userlink']) {
        @PMA_DBI_close($GLOBALS['userlink']);
    }
    // Sends bufferized data
    PMA_outBufferPost();
    exit;
}
开发者ID:rforillo,项目名称:wordpress-heroku2,代码行数:23,代码来源:navigation.php

示例2: PMA_exitNavigationFrame

/**
 * finish and cleanup navigation.php script execution
 *
 * @uses $GLOBALS['controllink'] to close it
 * @uses $GLOBALS['userlink'] to close it
 * @uses PMA_DBI_close()
 * @access private only to be used in navigation.php
 */
function PMA_exitNavigationFrame()
{
    echo '</body></html>';
    /**
     * Close MySQL connections
     */
    if (isset($GLOBALS['controllink']) && $GLOBALS['controllink']) {
        @PMA_DBI_close($GLOBALS['controllink']);
    }
    if (isset($GLOBALS['userlink']) && $GLOBALS['userlink']) {
        @PMA_DBI_close($GLOBALS['userlink']);
    }
    exit;
}
开发者ID:Kishaaa,项目名称:cs160-website,代码行数:22,代码来源:navigation.php

示例3: ImageCreateTrueColor

    if ($ratioWidth < $ratioHeight) {
        $destWidth = $srcWidth / $ratioHeight;
        $destHeight = $newHeight;
    } else {
        $destWidth = $newWidth;
        $destHeight = $srcHeight / $ratioWidth;
    }
    if ($resize) {
        $destImage = ImageCreateTrueColor($destWidth, $destHeight);
    }
    //    ImageCopyResized( $destImage, $srcImage, 0, 0, 0, 0, $destWidth, $destHeight, $srcWidth, $srcHeight );
    // better quality but slower:
    ImageCopyResampled($destImage, $srcImage, 0, 0, 0, 0, $destWidth, $destHeight, $srcWidth, $srcHeight);
    if ($resize == 'jpeg') {
        ImageJPEG($destImage, '', 75);
    }
    if ($resize == 'png') {
        ImagePNG($destImage);
    }
    ImageDestroy($srcImage);
    ImageDestroy($destImage);
}
/**
 * Close MySql non-persistent connections
 */
if (isset($GLOBALS['controllink']) && $GLOBALS['controllink']) {
    @PMA_DBI_close($GLOBALS['controllink']);
}
if (isset($GLOBALS['userlink']) && $GLOBALS['userlink']) {
    @PMA_DBI_close($GLOBALS['userlink']);
}
开发者ID:BGCX261,项目名称:zhe-project-agri-hg-to-git,代码行数:31,代码来源:transformation_wrapper.php

示例4: htmlspecialchars

            if ('VIEW' === strtoupper($table['Comment'])) {
                echo ' src="' . $GLOBALS['pmaThemeImage'] . 's_views.png"';
            } else {
                echo ' src="' . $GLOBALS['pmaThemeImage'] . 'b_sbrowse.png"';
            }
            echo ' id="icon_' . htmlspecialchars($table_db . '.' . $table['Name']) . '"' . ' width="10" height="10" alt="' . $GLOBALS['strBrowse'] . '" /></a>' . "\n" . '<a href="' . $href . '" title="' . $table['Comment'] . ' (' . PMA_formatNumber($table['Rows'], 0) . ' ' . $GLOBALS['strRows'] . ')"' . ' id="' . htmlspecialchars($table_db . '.' . $table['Name']) . '">' . htmlspecialchars($table['disp_name']) . '</a>';
            echo '</li>' . "\n";
        }
    }
    echo '</ul>';
}
?>
</div>
</body>
</html>
<?php 
/**
 * Close MySql connections
 */
if (isset($controllink) && $controllink) {
    @PMA_DBI_close($controllink);
}
if (isset($userlink) && $userlink) {
    @PMA_DBI_close($userlink);
}
/**
 * Sends bufferized data
 */
if ($GLOBALS['cfg']['OBGzip'] && isset($ob_mode) && $ob_mode) {
    PMA_outBufferPost($ob_mode);
}
开发者ID:hoogle,项目名称:ttt,代码行数:31,代码来源:left.php


注:本文中的PMA_DBI_close函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。