This is a translated page. The original can be found here: http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/
UPDATES VIA RSS | Email Оновлення через RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Головна / кодування / PHP / PHP: ob_start () Показати сторінку ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Показати сторінку відразу, забути про куки, заголовки відправлено занадто рано помилками

Posted on 21. Опублікований 21. Aug, 2009 by Dragos in Coding , PHP Серпень, 2009 Dragos в кодування, PHP

If you want to display your web pages at once, not subsequently, and reduce the “headers already sent, cannot send cookie information” errors, add ob_start() at the start of your script. Якщо ви хочете для відображення веб-сторінок одночасно, а не згодом, і зменшити "заголовки вже відправлені, не може відправити інформацію Cookie" помилки, додати ob_start () на початку вашого сценарію.

This function will turn output buffering on. Ця функція стане буферизацію виводу. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Хоча буферизація виведення активна ніякого висновку передається з сценарію (крім заголовків), а висновок зберігається у внутрішньому буфері. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Ви також можете керувати вмістом вихід за допомогою функції ob_get_contents ()

Translate this post Перекласти цю посаду


Related posts: Схожі повідомлення:

  1. Browsing errors: пщщпду or пщщпдуюсщь Перегляд помилок: пщщпду або пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Як для завантаження веб-сторінок (т.зв. веб металобрухт) з PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Кодування: Як витягти профілю користувача SSI.php з даними з бази даних форумом SMF

    blog comments powered by Disqus Блог коментарі сила Disqus