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 () Ipakita ang mga pahina ...

PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () Ipakita ang mga pahina ng sabay-sabay, limutin buongpaligid cookie, header ay nagpadala ng napakaaga error

Posted on 21. Posted on 21. Aug, 2009 by Dragos in Coding , PHP Agosto, 2009 sa pamamagitan ng Dragos sa 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. Kung nais mong ipakita ang iyong mga pahina ng web ng sabay-sabay, hindi sa dakong huli, at mabawasan ang "header na ipinadala, hindi maaaring magpadala ng impormasyon sa cookie" error, magdagdag ng ob_start () sa simula ng iyong script.

This function will turn output buffering on. Function na ito ay magpapasara sa 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. Habang ang output buffering ay aktibo na output ay hindi na ipinadala mula sa script (maliban sa header), sa halip na output ay naka-imbak sa isang panloob na buffer. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() Maaari ka ring mamanipula ang mga nilalaman ng output pamamagitan ng paggamit ng ob_get_contents function ()

Translate this post Isalin ang post na ito


Related posts: Related posts:

  1. Browsing errors: пщщпду or пщщпдуюсщь Pag-browse sa mga pagkakamali: пщщпду o пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: Paano mag-download ng isang webpage (aka web scrapping) na may PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Paano upang makuha ang data ng user profile na may SSI.php mula sa isang database ng SMF forum
  4. JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Ipadala ang function bilang isang parameter sa isa pang function (callbacks)

    blog comments powered by Disqus blog comments powered by Disqus