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 от Драгош в кодиране, 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. Ако искате да покажете своите уеб страници наведнъж, а не впоследствие, и да се намали "заглавията вече изпратено, не може да изпраща информация бисквитка" грешки, добави 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