Normally PHP scripts send their output directly to the standard output device, which is normally a Web browser. However, this is not always an ideal thing to do. For example, if your script has output part of a Web page and then encounters an error, while we have seen in the previous chapter that such errors can be caught, your error message may appear unprofessional, as part of your output has already been sent to the browser. In this chapter we introduce the concept of buffering, which allows you to store all output generated by the script and manipulate it if you want to.
KeywordsError Message Function Argument Page Access Callback Function Function Prototype
Unable to display preview. Download preview PDF.