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 Updates via RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Home / Coding / PHP / PHP: ob_start () faqe Afisho ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () faqe Display përnjëherë, harrojmë për cookie, headers dërguar shumë gabime në fillim

Posted on 21. Dërguar të 21. Aug, 2009 by Dragos in Coding , PHP Gusht, 2009 nga Dragoskodim, 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. Nëse dëshironi të ekranit faqet tuaja të internetit në një herë, jo më vonë, dhe për të zvogëluar "headers tashmë ka dërguar, nuk mund të dërgojë informacion cookie" gabime, shtoni ob_start () në fillim të shkrimit tuaj.

This function will turn output buffering on. Ky funksion do të kthehet në prodhim buffering. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Ndërsa buffering output është aktive nuk ka prodhim është dërguar nga script (përveç headers), në vend që prodhimi është ruajtur në një tampon të brendshme. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Ju gjithashtu mund të manipulojnë përmbajtjen e prodhimit duke përdorur ob_get_contents function ()

Translate this post Translate this post


Related posts: Related posts:

  1. Browsing errors: пщщпду or пщщпдуюсщь Gabime Browsing: пщщпду ose пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Si te shkarkoj nje faqe (aka hequr web) me PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Si mund të shkoj të marr të dhëna të profilit të përdoruesve me SSI.php nga një bazë të dhënash SMF forum
  4. JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Send të funksionojë si një parametër të një tjetër funksion (callbacks)

    blog comments powered by Disqus Komentet blog powered by Disqus