Buying Options
Programming PHP, Second Edition
Print $39.99
Add to Cart
Print+Ebook $43.99
Add to Cart
Ebook $31.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £30.99
Add to Cart
What is this?

Product Editions

  1. Programming PHP, Second Edition - April 2006
  2. Programming PHP - March 2002
Description
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, 2nd Edition, covers everything you need to know to create effective web applications with PHP.
Full Description
Table of Contents
  1. Chapter 1 Introduction to PHP

    1. What Does PHP Do?

    2. A Brief History of PHP

    3. Installing PHP

    4. A Walk Through PHP

  2. Chapter 2 Language Basics

    1. Lexical Structure

    2. Data Types

    3. Variables

    4. Expressions and Operators

    5. Flow-Control Statements

    6. Including Code

    7. Embedding PHP in Web Pages

  3. Chapter 3 Functions

    1. Calling a Function

    2. Defining a Function

    3. Variable Scope

    4. Function Parameters

    5. Return Values

    6. Variable Functions

    7. Anonymous Functions

  4. Chapter 4 Strings

    1. Quoting String Constants

    2. Printing Strings

    3. Accessing Individual Characters

    4. Cleaning Strings

    5. Encoding and Escaping

    6. Comparing Strings

    7. Manipulating and Searching Strings

    8. Regular Expressions

    9. POSIX-Style Regular Expressions

    10. Perl-Compatible Regular Expressions

  5. Chapter 5 Arrays

    1. Indexed Versus Associative Arrays

    2. Identifying Elements of an Array

    3. Storing Data in Arrays

    4. Multidimensional Arrays

    5. Extracting Multiple Values

    6. Converting Between Arrays and Variables

    7. Traversing Arrays

    8. Sorting

    9. Acting on Entire Arrays

    10. Using Arrays

  6. Chapter 6 Objects

    1. Terminology

    2. Creating an Object

    3. Accessing Properties and Methods

    4. Declaring a Class

    5. Introspection

    6. Serialization

  7. Chapter 7 Web Techniques

    1. HTTP Basics

    2. Variables

    3. Server Information

    4. Processing Forms

    5. Setting Response Headers

    6. Maintaining State

    7. SSL

  8. Chapter 8 Databases

    1. Using PHP to Access a Database

    2. Relational Databases and SQL

    3. PEAR DBPEAR DB Basics

    4. Advanced Database Techniques

    5. Sample Application

  9. Chapter 9 Graphics

    1. Embedding an Image in a Page

    2. The GDGD Extension

    3. Basic Graphics Concepts

    4. Creating and Drawing Images

    5. Images with Text

    6. Dynamically Generated Buttons

    7. Scaling Images

    8. Color Handling

  10. Chapter 10 PDF

    1. PDF Extensions

    2. Documents and Pages

    3. Text

  11. Chapter 11 XML

    1. Lightning Guide to XML

    2. Generating XML

    3. Parsing XML

    4. Parsing XML with DOM

    5. Parsing XML with SimpleXML

    6. Transforming XML with XSLT

    7. Web Services

  12. Chapter 12 Security

    1. Filter Input

    2. Escape Output

    3. Cross-Site Scripting

    4. Session Fixation

    5. File Uploads

    6. File Access

    7. PHP Code

    8. Shell Commands

    9. More Information

    10. Security Recap

  13. Chapter 13 Application Techniques

    1. Code Libraries

    2. Templating Systems

    3. Handling Output

    4. Error Handling

    5. Performance Tuning

  14. Chapter 14 Extending PHP

    1. Architectural Overview

    2. What You'll Need

    3. Building Your First Extensions

    4. The config.m4 File

    5. Memory Management

    6. The pvaldata typespval /zvaldata typeszval Data Type

    7. Parameter Handling

    8. Returning Values

    9. References

    10. Global Variables

    11. Creating Variables

    12. Extension INI Entries

    13. Resources

    14. Where to Go from Here

  15. Chapter 15 PHP on Windows

    1. Installing and Configuring PHP on Windows

    2. Writing Portable Code for Windows and Unix

    3. Interfacing with COM

    4. Interacting with ODBC Data Sources

  1. Appendix A Function Reference

    1. PHP Functions by Category

    2. Alphabetical Listing of PHP Functions

  2. Appendix B Extension Overview

    1. Optional Extensions Listing

  3. Colophon

View Full Table of Contents
Product Details
Title:
Programming PHP, Second Edition
By:
Rasmus Lerdorf, Kevin Tatroe, Peter MacIntyre
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
April 2006
Ebook Release:
June 2009
Pages:
544
Print ISBN:
978-0-596-00681-5
| ISBN 10:
0-596-00681-0
Ebook ISBN:
978-0-596-15910-8
| ISBN 10:
0-596-15910-2
Customer Reviews
About the Authors
  1. Rasmus Lerdorf

    Rasmus Lerdorf started the PHP Project back in 1995 and has been actively involved in PHP development ever since. Also involved in a number of other open source projects, Rasmus is a longtime Apache contributor and foundation member. He is the author of the first edition of the PHP Pocket Reference, and the co-author of the first edition of Programming PHP.

    View Rasmus Lerdorf's full profile page.

  2. Kevin Tatroe

    Kevin Tatroe has been a Macintosh and Unix programmer for ten years. He is an experienced PHP developer, knowledgeable in the changes coming with PHP 5. He is also co-author of the first edition of Programming PHP.

    View Kevin Tatroe's full profile page.

  3. Peter MacIntyre

    Peter MacIntyre lives and works in Charlottetown, Prince Edward Island, Canada. He has over 16 years of experience in the information technology industry, primarily in the area of software development. Peter's technical skill set includes several client/server tools and relational database systems such as PHP, PowerBuilder, Visual Basic, Active Server Pages, and CA-Visual Objects. Peter is certified by ZEND Corporation on PHP 4.x and has contributed writing material for Using Visual Objects (Que Corp.), Using PowerBuilder 5 (Que Corp.), ASP.NET Bible (Wiley Pub.), and Web Warrior Survey on Web Development Languages (Course Technology). Peter is also currently a contributing editor and author to the on-line and in-print magazine called php|architect (www.phparch.com). He has also spoken several times at North American and International computer conferences including CA-World in New Orleans, USA; CA-TechniCon in Cologne, Germany; and CA-Expo in Melbourne, Australia.

    View Peter MacIntyre's full profile page.

  • Book cover of Programming PHP