What is output buffering?

后端 未结 7 2251
不思量自难忘°
不思量自难忘° 2020-11-22 01:49

What is output buffering and why is one using it in PHP?

7条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 02:32

    The Output Control functions allow you to control when output is sent from the script. This can be useful in several different situations, especially if you need to send headers to the browser after your script has began outputting data. The Output Control functions do not affect headers sent using header() or setcookie(), only functions such as echo() and data between blocks of PHP code.

    http://php.net/manual/en/book.outcontrol.php

    More Resources:

    Output Buffering With PHP

提交回复
热议问题