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 () Tampilan halaman ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Halaman Tampilan sekaligus, lupakan cookie, header dikirim terlalu dini kesalahan

Posted on 21. Posted on 21. Aug, 2009 by Dragos in Coding , PHP Aug, 2009 oleh Dragos di Coding, 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. Jika Anda ingin menampilkan halaman web sekaligus, tidak kemudian, dan mengurangi "header sudah dikirim, tidak dapat mengirim informasi cookie" kesalahan, tambahkan ob_start () di awal skrip Anda.

This function will turn output buffering on. Fungsi ini akan mengubah output buffering di. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Sementara output buffering tidak aktif output yang dikirim dari script (selain header), selain output disimpan dalam buffer internal. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Anda juga dapat memanipulasi isi output dengan menggunakan fungsi ob_get_contents ()

Translate this post Terjemahkan posting ini


Related posts: Related posts:

  1. Browsing errors: пщщпду or пщщпдуюсщь Browsing errors: пщщпду atau пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Cara untuk men-download halaman web (web alias berkelahi) dengan PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Bagaimana untuk mengambil data dengan profil pengguna SSI.php dari database forum SMF

    blog comments powered by Disqus blog comments powered by DISQUS