Book description
Programming PHP, 2nd Edition, is the authoritative guide to PHP 5 and is filled with the unique knowledge of the creator of PHP (Rasmus Lerdorf) and other PHP experts. When it comes to creating websites, the PHP scripting language is truly a red-hot property. In fact, PHP is currently used on more than 19 million websites, surpassing Microsoft's ASP .NET technology in popularity. Programmers love its flexibility and speed; designers love its accessibility and convenience.
As the industry standard book on PHP, all of the essentials are covered in a clear and concise manner. Language syntax and programming techniques are coupled with numerous examples that illustrate both correct usage and common idioms. With style tips and practical programming advice, this book will help you become not just a PHP programmer, but a good PHP programmer. Programming PHP, Second Edition covers everything you need to know to create effective web applications with PHP. Contents include:
- Detailed information on the basics of the PHP language, including data types, variables, operators, and flow control statements
- Chapters outlining the basics of functions, strings, arrays, and objects
- Coverage of common PHP web application techniques, such as form processing and validation, session tracking, and cookies
- Material on interacting with relational databases, such as MySQL and Oracle, using the database-independent PEAR DB library and the new PDO Library
- Chapters that show you how to generate dynamic images, create PDF files, and parse XML files with PHP
- Advanced topics, such as creating secure scripts, error handling, performance tuning, and writing your own C language extensions to PHP
- A handy quick reference to all the core functions in PHP and all the standard extensions that ship with PHP
Praise for the first edition:
"If you are just getting into the dynamic Web development world or youare considering migrating from another dynamic web product to PHP, Programming PHP is the book of choice to get you up, running, and productive in a short time."
--Peter MacIntrye, eWeek
"I think this is a great book for programmers who want to start developing dynamic websites with PHP. It gives a detailed overview of PHP, lots of valuable tips, and a good sense of PHP's strengths."
--David Dooling, Slashdot.org
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- Foreword
- Preface
- 1. Introduction to PHP
-
2. Language Basics
- 2.1. Lexical Structure
- 2.2. Data Types
- 2.3. Variables
-
2.4. Expressions and Operators
- 2.4.1. Number of Operands
- 2.4.2. Operator Precedence
- 2.4.3. Operator Associativity
- 2.4.4. Implicit Casting
- 2.4.5. Arithmetic Operators
- 2.4.6. String Concatenation Operator
- 2.4.7. Autoincrement and Autodecrement Operators
- 2.4.8. Comparison Operators
- 2.4.9. Bitwise Operators
- 2.4.10. Logical Operators
- 2.4.11. Casting Operators
- 2.4.12. Assignment Operators
- 2.4.13. Miscellaneous Operators
- 2.5. Flow-Control Statements
- 2.6. Including Code
- 2.7. Embedding PHP in Web Pages
- 3. Functions
-
4. Strings
- 4.1. Quoting String Constants
- 4.2. Printing Strings
- 4.3. Accessing Individual Characters
- 4.4. Cleaning Strings
- 4.5. Encoding and Escaping
- 4.6. Comparing Strings
- 4.7. Manipulating and Searching Strings
- 4.8. Regular Expressions
- 4.9. POSIX-Style Regular Expressions
-
4.10. Perl-Compatible Regular Expressions
- 4.10.1. Delimiters
- 4.10.2. Match Behavior
- 4.10.3. Character Classes
- 4.10.4. Anchors
- 4.10.5. Quantifiers and Greed
- 4.10.6. Non-Capturing Groups
- 4.10.7. Backreferences
- 4.10.8. Trailing Options
- 4.10.9. Inline Options
- 4.10.10. Lookahead and Lookbehind
- 4.10.11. Cut
- 4.10.12. Conditional Expressions
- 4.10.13. Functions
- 4.10.14. Differences from Perl Regular Expressions
- 5. Arrays
- 6. Objects
- 7. Web Techniques
- 8. Databases
- 9. Graphics
- 10. PDF
-
11. XML
- 11.1. Lightning Guide to XML
- 11.2. Generating XML
- 11.3. Parsing XML
- 11.4. Parsing XML with DOM
- 11.5. Parsing XML with SimpleXML
- 11.6. Transforming XML with XSLT
- 11.7. Web Services
- 12. Security
- 13. Application Techniques
-
14. Extending PHP
- 14.1. Architectural Overview
- 14.2. What You’ll Need
- 14.3. Building Your First Extensions
- 14.4. The config.m4 File
- 14.5. Memory Management
- 14.6. The pval /zval Data Type
- 14.7. Parameter Handling
- 14.8. Returning Values
- 14.9. References
- 14.10. Global Variables
- 14.11. Creating Variables
- 14.12. Extension INI Entries
- 14.13. Resources
- 14.14. Where to Go from Here
-
15. PHP on Windows
- 15.1. Installing and Configuring PHP on Windows
- 15.2. Writing Portable Code for Windows and Unix
- 15.3. Interfacing with COM
- 15.4. Interacting with ODBC Data Sources
-
A. Function Reference
-
A.1. PHP Functions by Category
- A.1.1. Arrays
- A.1.2. Classes and Objects
- A.1.3. Date and Time
- A.1.4. Errors and Logging
- A.1.5. Files, Directories, and Filesystem
- A.1.6. Functions
- A.1.7. HTTP
- A.1.8. Images
- A.1.9. Mail
- A.1.10. Math
- A.1.11. Network
- A.1.12. Output Control
- A.1.13. PHP Options/Info
- A.1.14. Program Execution
- A.1.15. Strings
- A.1.16. Type Functions
- A.1.17. URLs
- A.1.18. Variable Functions
- A.2. Alphabetical Listing of PHP Functions
-
A.1. PHP Functions by Category
- B. Extension Overview
- About the Authors
- Colophon
- Copyright
Product information
- Title: Programming PHP, 2nd Edition
- Author(s):
- Release date: April 2006
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596006815
You might also like
book
Programming PHP, 3rd Edition
This updated edition teaches everything you need to know to create effective web applications with the …
book
Programming PHP
PHP is a simple yet powerful open-source scripting language for creating dynamic web content. The millions …
book
Core PHP Programming, Third Edition
Core PHP Programming, Third Edition is the authoritative guide to the new PHP 5 for experienced …
book
PHP and MySQL® Web Development, Fifth Edition
PHP and MySQL Web Development, Fifth Edition The definitive guide to building database-driven Web applications with …