Introducing PHP
The purpose of this chapter is to bring you up to speed on the development of PHP, where it's at now, and the reasons for programming with it. Towards the end of the chapter, you'll see your first PHP code as you start writing your first scripts.
Unless you find history fascinating, I recommend you skip directly here.
Chapter contents
- 2.1. History
- 2.1.1. Background
- 2.1.2. Early versions of PHP
- 2.1.3. Current release
- 2.1.4. Upgrading from PHP 3
- 2.1.5. Upgrading from PHP 4
- 2.1.6. The creators of PHP
- 2.1.7. The Zend Relationship
- 2.2. Advantages of PHP
- 2.2.1. The HTML relationship
- 2.2.2. Interpreting vs. Compiling
- 2.2.3. Output Control
- 2.2.4. Performance
- 2.2.5. Competing Languages
- 2.2.6. When to use PHP
- 2.2.7. When not to use PHP
- 2.2.8. Selling PHP to your boss
- 2.3. Extending PHP
- 2.4. PEAR
- 2.5. Running PHP scripts
- 2.6. How PHP is written
- 2.6.1. Whitespace
- 2.6.2. Escape sequences
- 2.6.3. Heredoc
- 2.6.4. Brief introduction to variable types
- 2.6.5. Code blocks
- 2.6.6. Opening and closing code islands
- 2.6.7. Comments
- 2.6.8. Conditional statements
- 2.6.9. Case switching
- 2.6.10. Loops
- 2.6.11. Infinite loops
- 2.6.12. Special loop keywords
- 2.6.13. Loops within loops
- 2.6.14. Mixed-mode processing
- 2.6.15. Including other files
- 2.7. Abnormal script termination
- 2.8. Editing your PHP configuration
- 2.9. Summary
- 2.10. Exercises
- 2.11. Further reading
- 2.12. Next chapter


Copyright 2010 Future Publishing Limited (company
registered number 2008885), a company registered
in England and Wales whose registered office is at
Beauford Court, 30 Monmouth Street, Bath, BA1 2BW, UK