本文整理汇总了PHP中Output::flush方法的典型用法代码示例。如果您正苦于以下问题:PHP Output::flush方法的具体用法?PHP Output::flush怎么用?PHP Output::flush使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Output
的用法示例。
在下文中一共展示了Output::flush方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: processRequest
function processRequest(&$db)
{
ob_end_clean();
include_once BASE_PATH . "/lib/output.php";
Output::buffer();
$link = "http://mywebsql.net/updates.php?j=1&" . "c=MyWebSQL&l=" . urlencode(LANGUAGE) . "&v=" . urlencode(APP_VERSION) . "&t=" . urlencode(THEME_PATH);
// include compact edition in update if we are using one
if (defined('MYWEBSQL_COMPACT_DIST')) {
$link .= "&e=compact";
}
$output = "";
if (ini_get("allow_url_fopen")) {
$output = file_get_contents($link);
} else {
$output = curl_get($link);
}
Session::set('updates', 'check', '1');
echo $output;
$db->disconnect();
Output::flush();
die;
}
示例2: helpCheckUpdates
;
var commandEditor = null;
var commandEditor2 = null;
var commandEditor3 = null;
<?php
include BASE_PATH . '/config/updates.php';
if ($AUTOUPDATE_CHECK === TRUE && Session::get('updates', 'check') == '') {
if (in_array(date('D'), $AUTOUPDATE_DAYS)) {
echo "\n\t\$(function() { helpCheckUpdates(); });\n";
}
}
if (Session::get('db', 'changed')) {
echo 'document.getElementById("messageContainer").innerHTML = "Database changed to: ' . htmlspecialchars(Session::get('db', 'name')) . '";';
Session::del('db', 'changed');
} else {
echo 'document.getElementById("messageContainer").innerHTML = "Connected to: ' . DB_HOST . ' as ' . DB_USER . '";';
}
?>
</script>
<script type="text/javascript" language="javascript" src="cache.php?script=layout,ui,dialogs,context,alerts,cookies,select,interface,options,treeview,common,taskbar,settings,query,tables,clipboard"></script>
<?php
$DB->disconnect();
echo getContextMenusHTML();
updateSqlEditor();
echo getHotkeysHTML();
echo getGeneratedJS();
?>
</body></html>
<?php
Output::flush();