O'Reilly logo

PHP 5 Unleashed by John Coggeshall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 28. Printable Document Generation

Although PHP has many uses both from the terminal through the command-line interface as well as from the Web, its primary purpose is as a dynamic document-generation language. In most cases, PHP is used to generate markup languages such as HTML or XML; however, this chapter focuses on the other types of documents that can be generated using PHP—namely Rich Text Format (RTF) and Portable Document Format (PDF) documents.

The first question that must be asked is simple: Why would you want to generate these types of documents? In a Web environment, HTML combined with technologies such as cascading style sheets ( ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required