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 AĠĠORNAMENTI VIA RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Home / Kodifika / PHP / PHP: ob_start () Uri paġna ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () paġna Display f'daqqa, tinsieh cookie, headers jintbagħtu kmieni wisq żbalji

Posted on 21. Posted on 21. Aug, 2009 by Dragos in Coding , PHP Awissu, 2009 mill Dragos fl-Kodifika, 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. Jekk inti tixtieq li display paġni web tiegħek minnufih, u mhux sussegwentement, u jnaqqsu l-intestaturi "diġà mibgħuta, ma tistax tibgħat l-informazzjoni cookie" żbalji, żid ob_start () fil-bidu ta 'l-iskrittura tiegħek.

This function will turn output buffering on. Din il-funzjoni se imbagħad output lqugħ fuq. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Filwaqt li l-effett ta 'waqfien produzzjoni hija attiva l-ebda output huwa mibgħut mill-iskrittura (minbarra headers), minflok l-output huwa maħżun fi buffer intern. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Tista 'wkoll jimmanipula l-kontenut ta' l-output billi tuża l-funzjoni ob_get_contents ()

Translate this post Ittraduċi din il-kariga


Related posts: Related postijiet:

  1. Browsing errors: пщщпду or пщщпдуюсщь Żbalji Browsing: пщщпду jew пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Kif tniżżel webpage (magħruf ukoll bħala web skrappjar) ma PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Kodifika: Kif jġibu profil utent tad-data ma SSI.php minn database forum SMF

    blog comments powered by Disqus blog kummenti powered by Disqus