本文整理匯總了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;
}
示例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;
}
示例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']);
}
示例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);
}