Output Buffering

  • Simon Stobart
  • Mike Vassileiou
Part of the Springer Professional Computing book series (SPC)


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.


Error Message Function Argument Page Access Callback Function Function Prototype 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag London 2004

Authors and Affiliations

  • Simon Stobart
    • 1
  • Mike Vassileiou
    • 2
  1. 1.School of Computing and TechnologyUniversity of SunderlandSunderlandUK
  2. 2.iNET4UGreece

Personalised recommendations