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 | E-pasts Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … Home / Coding / PHP / PHP: ob_start () Display lapa ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Parādīt lapā uzreiz, aizmirstiet par cookie, galvenes nosūtīts pārāk agri kļūdu

Posted on 21. Posted on 21. Aug, 2009 by Dragos in Coding , PHP Aug, 2009 by Dragos in kodēšanas, 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. Ja jūs vēlaties rādīt savas tīmekļa lapas uzreiz, ne vēlāk, kā arī samazinās "headers already sent nevar nosūtīt sīkfailu informāciju" kļūdas, pievieno ob_start () sākumā jūsu skriptu.

This function will turn output buffering on. Šī funkcija kļūs produkcija 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. Turpretim produkciju buffering darbojas ne produkcija ir nosūtīta no skriptu (izņemot virsrakstu), nevis produkcijas tiek saglabāta iekšējā buferī. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Jūs varat arī manipulēt ar rezultātu saturu, izmantojot funkciju ob_get_contents ()

Translate this post Tulkot šo ziņu


Related posts: Related posts:

  1. Browsing errors: пщщпду or пщщпдуюсщь Pārlūkošana kļūdas: пщщпду vai пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Kā lejupielādēt tīmekļa vietnē (pazīstams arī kā web metāllūžņos) ar PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Kā ielādēt lietotāja profila datus ar SSI.php no SMF foruma datubāze

    blog comments powered by Disqus blog komentāriem powered by Disqus