• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ob_implicit_flush函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: __construct

 function __construct($mode = null)
 {
     ob_start();
     ob_implicit_flush(false);
     parent::__construct();
     $this->isCli = 'cli' == ($mode ? $mode : PHP_SAPI);
     $basedir = $this->isCli ? dirname(realpath($_SERVER['argv'][0])) : $_SERVER['DOCUMENT_ROOT'];
     set_include_path($basedir . PATH_SEPARATOR . get_include_path());
     $this->config = new Config($this);
     $this->config->load(__DIR__ . DIRECTORY_SEPARATOR . 'defaults.php');
     if ($configFile = getenv('CONFIG_FILE')) {
         $this->config->load($configFile, false);
     } else {
         $this->config->load('configs.php', true);
     }
     $this->config->basedir = $basedir;
     $on_exception = function ($exception) {
         if (!$this->emit('exception', $exception)) {
             throw $exception;
         }
     };
     set_exception_handler($on_exception->bindTo($this));
     $on_shutdown = function () {
         $this->emit('shutdown');
     };
     register_shutdown_function($on_shutdown->bindTo($this));
     $on_error = function (...$args) {
         return $this->emit('error', (object) array_combine(['no', 'str', 'file', 'line', 'context'], $args));
     };
     set_error_handler($on_error->bindTo($this));
     $this->useMiddleware($this->config->use);
 }
开发者ID:zweifisch,项目名称:zf,代码行数:32,代码来源:App.php


示例2: run

 public function run()
 {
     /*
      * Instead of manually rendering scripts after this function returns we
      * use the callback. This ensures that scripts are always rendered, even
      * if we call exit at some point in the code. (Which we shouldn't, but
      * it happens.)
      */
     // Ensure to set some var, but script are replaced in SurveyRuntimeHelper
     $aLSJavascriptVar = array();
     $aLSJavascriptVar['bFixNumAuto'] = (int) (bool) Yii::app()->getConfig('bFixNumAuto', 1);
     $aLSJavascriptVar['bNumRealValue'] = (int) (bool) Yii::app()->getConfig('bNumRealValue', 0);
     $aLangData = getLanguageData();
     $aRadix = getRadixPointData($aLangData[Yii::app()->getConfig('defaultlang')]['radixpoint']);
     $aLSJavascriptVar['sLEMradix'] = $aRadix['separator'];
     $sLSJavascriptVar = "LSvar=" . json_encode($aLSJavascriptVar) . ';';
     App()->clientScript->registerScript('sLSJavascriptVar', $sLSJavascriptVar, CClientScript::POS_HEAD);
     App()->clientScript->registerScript('setJsVar', "setJsVar();", CClientScript::POS_BEGIN);
     // Ensure all js var is set before rendering the page (User can click before $.ready)
     App()->getClientScript()->registerPackage('jqueryui');
     App()->getClientScript()->registerPackage('jquery-touch-punch');
     App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts') . "survey_runtime.js");
     useFirebug();
     ob_start(function ($buffer, $phase) {
         App()->getClientScript()->render($buffer);
         App()->getClientScript()->reset();
         return $buffer;
     });
     ob_implicit_flush(false);
     $this->action();
     ob_flush();
 }
开发者ID:rouben,项目名称:LimeSurvey,代码行数:32,代码来源:index.php


示例3: renderFile

 /**
 +----------------------------------------------------------
 * 渲染模板输出 供render方法内部调用
 +----------------------------------------------------------
 * @access public
 +----------------------------------------------------------
 * @param string $templateFile  模板文件
 * @param mixed $var  模板变量
 * @param string $charset  模板编码
 +----------------------------------------------------------
 * @return string
 +----------------------------------------------------------
 */
 protected function renderFile($templateFile = '', $var = '', $charset = 'utf-8')
 {
     ob_start();
     ob_implicit_flush(0);
     if (!file_exists_case($templateFile)) {
         // 自动定位模板文件
         $name = substr(get_class($this), 0, -6);
         $filename = empty($templateFile) ? $name : $templateFile;
         $templateFile = LIB_PATH . 'Widget/' . $name . '/' . $filename . C('TMPL_TEMPLATE_SUFFIX');
         if (!file_exists_case($templateFile)) {
             throw_exception(L('_TEMPLATE_NOT_EXIST_') . '[' . $templateFile . ']');
         }
     }
     $template = $this->template ? $this->template : strtolower(C('TMPL_ENGINE_TYPE') ? C('TMPL_ENGINE_TYPE') : 'php');
     if ('php' == $template) {
         // 使用PHP模板
         if (!empty($var)) {
             extract($var, EXTR_OVERWRITE);
         }
         // 直接载入PHP模板
         include $templateFile;
     } else {
         $className = 'Template' . ucwords($template);
         require_cache(THINK_PATH . '/Lib/Think/Util/Template/' . $className . '.class.php');
         $tpl = new $className();
         $tpl->fetch($templateFile, $var, $charset);
     }
     $content = ob_get_clean();
     return $content;
 }
开发者ID:dalinhuang,项目名称:concourse,代码行数:43,代码来源:Widget.class.php


示例4: __construct

 public function __construct(Base\Provider $requestProvider, Manager $threadManager)
 {
     set_time_limit(0);
     ob_implicit_flush();
     $this->_requestProvider = $requestProvider;
     $this->_threadManager = $threadManager;
 }
开发者ID:ZyManch,项目名称:lumza,代码行数:7,代码来源:Server.php


示例5: connect

 public function connect(Application $app)
 {
     $controllers = new ControllerCollection();
     $supervisor = new API();
     $servers = (include __DIR__ . '/../../config.php');
     foreach (array_keys($servers) as $server_id) {
         $servers[$server_id]['id'] = $server_id;
     }
     $controllers->get('/list.{_format}', function ($_format) use($supervisor, $app, $servers) {
         if ($_format == 'json') {
             return $app->json($servers);
         } else {
             // use a closure to avoid leaking any vars into the template that we don't explicitly want
             return call_user_func(function () use($app) {
                 $url_root = $app['url_generator']->generate('home');
                 ob_start();
                 ob_implicit_flush(false);
                 include __DIR__ . '/../../views/supervisorui.html.php';
                 return ob_get_clean();
             });
         }
     })->bind('server_list')->value('_format', 'html');
     $controllers->get('/details/{server_id}', function ($server_id) use($supervisor, $app, $servers) {
         $server_ip = $servers[$server_id]['ip'];
         $details = array_merge(array('version' => $supervisor->getSupervisorVersion('127.0.0.1'), 'pid' => $supervisor->getPID('127.0.0.1')), $supervisor->getState('127.0.0.1'), $servers[$server_id]);
         return $app->json($details);
     });
     return $controllers;
 }
开发者ID:jbinfo,项目名称:supervisorui,代码行数:29,代码来源:ServerControllerProvider.php


示例6: __construct

 /**
  * Constructor.
  *
  * @param   object  &$subject  The object to observe
  * @param   array   $config    An array that holds the plugin configuration
  *
  * @since   1.5
  */
 public function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     // Log the deprecated API.
     if ($this->params->get('log-deprecated')) {
         JLog::addLogger(array('text_file' => 'deprecated.php'), JLog::ALL, array('deprecated'));
     }
     $this->debugLang = JFactory::getApplication()->getCfg('debug_lang');
     // Only if debugging or language debug is enabled
     if (JDEBUG || $this->debugLang) {
         JFactory::getConfig()->set('gzip', 0);
         ob_start();
         ob_implicit_flush(false);
     }
     $this->linkFormat = ini_get('xdebug.file_link_format');
     if ($this->params->get('logs', 1)) {
         $priority = 0;
         foreach ($this->params->get('log_priorities', array()) as $p) {
             $const = 'JLog::' . strtoupper($p);
             if (!defined($const)) {
                 continue;
             }
             $priority |= constant($const);
         }
         // Split into an array at any character other than alphabet, numbers, _, ., or -
         $categories = array_filter(preg_split('/[^A-Z0-9_\\.-]/i', $this->params->get('log_categories', '')));
         $mode = $this->params->get('log_category_mode', 0);
         JLog::addLogger(array('logger' => 'callback', 'callback' => array($this, 'logger')), $priority, $categories, $mode);
     }
     // Prepare disconnect-handler for SQL profiling:
     $db = JFactory::getDbo();
     $db->addDisconnectHandler(array($this, 'mysqlDisconnectHandler'));
 }
开发者ID:fur81,项目名称:zofaxiopeu,代码行数:41,代码来源:debug.php


示例7: renderRow

/**
 * 
 * @param biz\models\GlDetail $model
 * @param integer $index
 * @return string
 */
function renderRow($model, $index)
{
    ob_start();
    ob_implicit_flush(false);
    ?>
                    <tr>
                        <?php 
    echo Html::activeHiddenInput($model, "[{$index}]id_gl_detail");
    ?>
                        <td class="serial"><?php 
    echo $index;
    ?>
</td>
                        <td><?php 
    echo Html::activeTextInput($model, "[{$index}]id_coa");
    ?>
</td>
                        <td><?php 
    echo Html::activeTextInput($model, "[{$index}]debit");
    ?>
</td>
                        <td><?php 
    echo Html::activeTextInput($model, "[{$index}]kredit");
    ?>
</td>
                        <td class="action"><a class="fa fa-minus-square-o" href="#"></a></td>
                    </tr>
                    <?php 
    return trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
}
开发者ID:sangkilsoft,项目名称:sangkilbiz-3,代码行数:36,代码来源:_form.php


示例8: init

 /**
  * Executes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     ob_start();
     ob_implicit_flush(false);
 }
开发者ID:wfcreations,项目名称:yii2-metronic,代码行数:10,代码来源:Notification.php


示例9: load

 public function load()
 {
     ob_start();
     ob_implicit_flush(false);
     include __DIR__ . '/data/admin.php';
     ob_get_clean();
 }
开发者ID:max-wen,项目名称:yii2-app-advanced-autoEnv,代码行数:7,代码来源:AdminFixture.php


示例10: pre_start

/**
 * Use to begin a preformatted code block.
 * 
 * By default creates <pre class="code">.
 * 
 * @return 
 * @param object $cssClass[optional]
 */
function pre_start($cssClass = 'code')
{
    echo '<pre class="' . $cssClass . "\">\n";
    coreConfig::set('pre_highlight_mode', $cssClass);
    ob_start();
    ob_implicit_flush(0);
}
开发者ID:nikitakit,项目名称:RevTK,代码行数:15,代码来源:DocHelper.php


示例11: generatePrologDTDtyping

function generatePrologDTDtyping($dtd)
{
    $table = "dtdFile";
    include_once realpath('') . '/includes/configuration/core_configuration.php';
    //Load the pear library
    require_once 'XML_DTD/DTD.php';
    ob_implicit_flush(true);
    $path = ini_get('include_path');
    $dtd = 'w3cDtds/' . $dtd;
    ini_set('include_path', realpath('..') . ":{$path}");
    $formElements = array();
    $formElements[0] = 'select';
    $formElements[1] = 'option';
    $formElements[2] = 'textarea';
    $formElements[3] = 'input';
    $typeRulesArray = array(":- multifile attributetype/3.\n\n");
    for ($index = 0; $index < sizeof($formElements); $index++) {
        $typeRule = dtd::findAttributes($formElements[$index], $dtd);
        $typeRulesArray = array_merge($typeRulesArray, $typeRule->toArray());
    }
    for ($index = 0; $index < sizeof($typeRulesArray); $index++) {
        echo "{$typeRulesArray[$index]}<br>";
    }
    writer::write('typedefinitions.pl', 'cgi-bin/htmlTyping/', $typeRulesArray);
}
开发者ID:printedheart,项目名称:iwfms,代码行数:25,代码来源:parseHTMLdtd.php


示例12: init

 public function init()
 {
     if ($this->visible) {
         ob_start();
         ob_implicit_flush(false);
         $cs = Yii::app()->clientScript;
         if ($this->cssFile === null) {
             $cssFile = CHtml::asset(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR . 'portlet.css');
             $cs->registerCssFile($cssFile);
         } else {
             if ($this->cssFile !== false) {
                 $cs->registerCssFile($this->cssFile);
             }
         }
         echo "<div class=\"{$this->cssClass}\" style=\"width:{$this->width}\">\n";
         if ($this->headerimage !== null) {
             echo "<div class=\"{$this->headerCssClass}\"><img src=\"";
         }
         echo XHtml::imageUrl($this->headerimage);
         echo "\"></div>\n";
         echo "<div class=\"{$this->contentCssClass}\">\n";
         $this->_openTag = ob_get_contents();
         ob_clean();
     }
 }
开发者ID:mryuhancai,项目名称:newphemu,代码行数:25,代码来源:XPortlet.php


示例13: response

 public function response()
 {
     if (function_exists('apache_setenv')) {
         @apache_setenv('no-gzip', 1);
     }
     @ini_set('zlib.output_compression', 0);
     @ini_set('implicit_flush', 1);
     for ($i = 0; $i < ob_get_level(); $i++) {
         ob_end_clean();
     }
     ob_implicit_flush(1);
     header('Content-Type: ' . (isset($_GET['callback']) ? 'text/javascript' : 'application/json'));
     header('Access-Control-Allow-Origin: *');
     try {
         if ($this->auth()) {
             $this->handler = new RestHandler($this->method, $this);
             $response = $this->handler->response();
             echo $this->formatResponse($response);
         } else {
             throw new RestException(RestException::APP_NOT_AUTHORIZED);
         }
     } catch (RestException $e) {
         echo $this->formatResponse($e);
     }
     @ob_flush();
     @flush();
 }
开发者ID:Benny1923,项目名称:Ltayer,代码行数:27,代码来源:restserver.php


示例14: __construct

 /**
  * Constructor.
  *
  * @param   object  &$subject  The object to observe
  * @param   array   $config    An array that holds the plugin configuration
  *
  * @since 1.5
  */
 public function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     // Log the deprecated API.
     if ($this->params->get('log-deprecated')) {
         \JLog::addLogger(array('text_file' => 'deprecated.php'), \JLog::ALL, array('deprecated'));
     }
     // Log database errors
     if ($this->params->get('log-database-errors')) {
         \JLog::addLogger(array('text_file' => 'jdatabase.error.php'), \JLog::ALL, array('database'));
     }
     // Log database queries
     if ($this->params->get('log-database-queries')) {
         \JLog::addLogger(array('text_file' => 'jdatabase.query.php'), \JLog::ALL, array('databasequery'));
         // Register the HUBzero database logger as well
         // Don't worry, this won't log things twice...queries through joomla's database driver
         // will get logged above, and this will catch queries through hubzero's database driver
         \Event::listen(function ($event) {
             \Hubzero\Database\Log::add($event->getArgument('query'), $event->getArgument('time'));
         }, 'database_query');
     }
     // Only if debugging or language debug is enabled
     if (Config::get('debug') || Config::get('debug_lang')) {
         Config::set('gzip', 0);
         ob_start();
         ob_implicit_flush(false);
     }
     $this->linkFormat = ini_get('xdebug.file_link_format');
 }
开发者ID:zooley,项目名称:hubzero-cms,代码行数:37,代码来源:debug.php


示例15: catch_output

 function catch_output(callable $callback)
 {
     ob_start();
     ob_implicit_flush(false);
     call_user_func($callback);
     return ob_get_clean();
 }
开发者ID:blendsdk,项目名称:blendengine,代码行数:7,代码来源:phpunit_bootstrap.php


示例16: init

 /**
  * Bootstraps a few INI settings, error handling, and enables direct output.
  *
  * - `session.serialize_handler` is set to `php_serialize`
  *
  * - `session.cookie_httpOnly` is enabled.
  *
  * - `display_errors` and `display_startup_errors` is set to boolean of whether we are running in the CLI server.
  *
  * - `log_errors` is enabled.
  *
  * - PHP's internal output buffer is disabled.
  * All content is sent directly over the wire unless buffering functions are used.
  * This means that views ({@link \H\V}) and other dynamic content will have no `Content-Length` header unless explicitly set (see {@link \H\O}).
  *
  * - [error_reporting()](http://php.net/error-reporting) is set to non-informational errors and warnings. `E_STRICT` is ignored.
  *
  * - [set_error_handler()](http://php.net/set-error-handler) to throw an [ErrorException](http://php.net/ErrorException)
  * for errors in [error_reporting()](http://php.net/error-reporting), thus "reporting" becomes synonymous with "throwing".
  * All uncaught exceptions find their way to the `error` event (see below).
  * Excluded error levels are not thrown, but do get sent to the `log` event (see below), unless silenced with `@`.
  *
  * - [set_exception_handler()](http://php.net/set-exception-handler) to notify the `log` and `error` events (see below).
  * {@link \H\X} is not given to the `log` event, as it is intended for error slippage and can contain potentially large payloads for the user.
  *
  * - Puts a listener on the `error` event. The listener sets a response code and **exits gracefully**.
  * This event should *only* be notified by the global exception handler, you should not notify it manually.
  * Because event listeners are called in LIFO order (see {@link \H\E}), this listener is always called last,
  * so you can pile on additional listeners and exit *more* gracefully.
  * The listener behaves as follows:
  * If the exception is {@link \H\X} then its code and message are used for the response.
  * Otherwise the response code is set to `503` and a generic message is used including the request ID
  * so the user at least has a reference for the failure (see {@link \H\I::id()}).
  * If you attach a listener to the `error` event you can expect an `Exception` as the only argument, or a `Throwable` if in PHP 7.
  * {@link \H\X} must be treated as a JSON encoded HTTP error for the user, and *not* as a server error.
  * You can simply `return` from your listener if you encounter {@link \H\X} so it can find its way to this listener.
  *
  * - Puts a listener on the `log` event.
  * The listener formats a message including the error code, client IP, request method, and request URI, and gives it to [error_log()](php.net/function.error-log).
  * The listener can be trumped by attaching a new listener and returning `false` from it (see {@link \H\E::notify()}).
  *
  * The `log` event can be manually notified with the following arguments:
  *
  * - `string $message`
  * - `int $type` (optional)
  *
  * As a rule of thumb, HTTP status codes can be used for custom log types, since they don't collide with any
  * [error constants](http://php.net/errorfunc.constants) (powers of 2),
  * and the numeric categories of HTTP codes provide context for the nature of the log.
  *
  * Listeners should assume the type is `100` (informational/verbose) if not given.
  * The framework doesn't notify the `log` event except for error reporting.
  *
  * The `log` event is for broadcasting logs only and should **not** output user content or exit.
  */
 public static function init()
 {
     error_reporting(E_ALL);
     // in case of problems with init. made quieter below.
     ini_set('log_errors', true);
     ob_implicit_flush();
     // directly output
     header('X-Request-ID: ' . I::id());
     $dev = php_sapi_name() === 'cli-server';
     ini_set('display_errors', $dev);
     ini_set('display_startup_errors', $dev);
     ini_set('session.cookie_httpOnly', true);
     ini_set('session.serialize_handler', 'php_serialize');
     E::listen('error', function ($thrown) {
         self::onError($thrown);
     });
     E::listen('log', function ($message, $type = 100) {
         self::onLog($message, $type);
     });
     set_error_handler(function ($code, $message, $file, $line) {
         self::phpErrorHandler($code, $message, $file, $line);
     });
     set_exception_handler(function ($thrown) {
         self::phpExceptionHandler($thrown);
     });
     error_reporting(E_RECOVERABLE_ERROR | E_WARNING | E_USER_ERROR | E_USER_WARNING);
 }
开发者ID:hfw,项目名称:h,代码行数:82,代码来源:H.php


示例17: init

 public static function init(&$sockets, &$clients)
 {
     if (self::$initalized) {
         return;
     }
     $sockets =& self::$sockets;
     $clients =& self::$clients;
     self::$initalized = 1;
     // Allow the script to hang around waiting for connections.
     set_time_limit(0);
     // Turn on implicit output flushing so output gets sent imediately
     ob_implicit_flush();
     $DEBUG = true;
     define('DEBUG', $DEBUG);
     self::require_libs();
     self::load_config();
     if (issetArg('help') || issetArg('?')) {
         self::show_help();
         exit;
     }
     if (!($modules = self::config('modules'))) {
         exit("[FATAL ERROR] no modules loaded in the config.\n");
     }
     foreach ($modules as $m) {
         module::load($m);
     }
 }
开发者ID:soldair,项目名称:solumWebSocket,代码行数:27,代码来源:server.php


示例18: getContent

 /**
  * Метод безопасно получает контент.
  * В случае возникновения ошибки возвращает её стек.
  */
 public static function getContent($objOrTpl, $method = 'buildContent')
 {
     $isCallable = is_callable($objOrTpl);
     $isTpl = $objOrTpl instanceof Smarty_Internal_Template;
     if (!$isCallable && !$isTpl) {
         check_condition(is_object($objOrTpl), 'Not object passed to ' . __FUNCTION__);
         PsUtil::assertMethodExists($objOrTpl, $method);
     }
     $returned = null;
     $flushed = null;
     ob_start();
     ob_implicit_flush(false);
     try {
         if ($isCallable) {
             $returned = call_user_func($objOrTpl);
         } else {
             if ($isTpl) {
                 $returned = $objOrTpl->fetch();
             } else {
                 $returned = $objOrTpl->{$method}();
             }
         }
     } catch (Exception $ex) {
         ob_end_clean();
         return ExceptionHandler::getHtml($ex);
     }
     $flushed = ob_get_contents();
     ob_end_clean();
     return isEmpty($returned) ? isEmpty($flushed) ? null : $flushed : $returned;
 }
开发者ID:ilivanoff,项目名称:www,代码行数:34,代码来源:ContentHelper.php


示例19: call

 /**
  * Calls a cacheable function or method (or not if there is already a cache for it).
  *
  * Arguments of this method are read with func_get_args. So it doesn't appear in the function definition.
  *
  * The first argument can be any PHP callable:
  *
  * $cache->call('functionName', array($arg1, $arg2));
  * $cache->call(array($object, 'methodName'), array($arg1, $arg2));
  *
  * @param mixed $callable  A PHP callable
  * @param array $arguments An array of arguments to pass to the callable
  *
  * @return mixed The result of the function/method
  */
 public function call($callable, $arguments = array())
 {
     // Generate a cache id
     $key = $this->computeCacheKey($callable, $arguments);
     $serialized = $this->cache->get($key);
     if ($serialized !== null) {
         $data = unserialize($serialized);
     } else {
         $data = array();
         if (!is_callable($callable)) {
             throw new sfException('The first argument to call() must be a valid callable.');
         }
         ob_start();
         ob_implicit_flush(false);
         try {
             $data['result'] = call_user_func_array($callable, $arguments);
         } catch (Exception $e) {
             ob_end_clean();
             throw $e;
         }
         $data['output'] = ob_get_clean();
         $this->cache->set($key, serialize($data));
     }
     echo $data['output'];
     return $data['result'];
 }
开发者ID:bigcalm,项目名称:urlcatcher,代码行数:41,代码来源:sfFunctionCache.class.php


示例20: start

 /**
  * Start the cache
  *
  * @param  string  $id       (optional) A cache id (if you set a value here, maybe you have to use Output frontend instead)
  * @param  boolean $doNotDie For unit testing only !
  * @return boolean True if the cache is hit (false else)
  */
 public function start($id = false, $doNotDie = false)
 {
     $this->_cancel = false;
     $lastMatchingRegexp = null;
     foreach ($this->_specificOptions['regexps'] as $regexp => $conf) {
         if (preg_match("`{$regexp}`", $_SERVER['REQUEST_URI'])) {
             $lastMatchingRegexp = $regexp;
         }
     }
     $this->_activeOptions = $this->_specificOptions['default_options'];
     if ($lastMatchingRegexp !== null) {
         $conf = $this->_specificOptions['regexps'][$lastMatchingRegexp];
         foreach ($conf as $key => $value) {
             $this->_activeOptions[$key] = $value;
         }
     }
     if (!$this->_activeOptions['cache']) {
         return false;
     }
     if (!$id) {
         $id = $this->_makeId();
         if (!$id) {
             return false;
         }
     }
     $data = $this->load($id);
     if ($data !== false) {
         echo $data;
         die;
     }
     ob_start(array($this, '_flush'));
     ob_implicit_flush(false);
     return false;
 }
开发者ID:nstapelbroek,项目名称:Glitch_Lib,代码行数:41,代码来源:StaticPage.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ob_list_handlers函数代码示例发布时间:2022-05-15
下一篇:
PHP ob_gzhandler函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap