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
-
Chapter 1 Introduction to PHP
-
What Does PHP Do?
-
A Brief History of PHP
-
Installing PHP
-
A Walk Through PHP
-
-
Chapter 2 Language Basics
-
Lexical Structure
-
Data Types
-
Variables
-
Expressions and Operators
-
Flow-Control Statements
-
Including Code
-
Embedding PHP in Web Pages
-
-
Chapter 3 Functions
-
Calling a Function
-
Defining a Function
-
Variable Scope
-
Function Parameters
-
Return Values
-
Variable Functions
-
Anonymous Functions
-
-
Chapter 4 Strings
-
Quoting String Constants
-
Printing Strings
-
Accessing Individual Characters
-
Cleaning Strings
-
Encoding and Escaping
-
Comparing Strings
-
Manipulating and Searching Strings
-
Regular Expressions
-
POSIX-Style Regular Expressions
-
Perl-Compatible Regular Expressions
-
-
Chapter 5 Arrays
-
Indexed Versus Associative Arrays
-
Identifying Elements of an Array
-
Storing Data in Arrays
-
Multidimensional Arrays
-
Extracting Multiple Values
-
Converting Between Arrays and Variables
-
Traversing Arrays
-
Sorting
-
Acting on Entire Arrays
-
Using Arrays
-
-
Chapter 6 Objects
-
Terminology
-
Creating an Object
-
Accessing Properties and Methods
-
Declaring a Class
-
Introspection
-
Serialization
-
-
Chapter 7 Web Techniques
-
HTTP Basics
-
Variables
-
Server Information
-
Processing Forms
-
Setting Response Headers
-
Maintaining State
-
SSL
-
-
Chapter 8 Databases
-
Using PHP to Access a Database
-
Relational Databases and SQL
-
PEAR DBPEAR DB Basics
-
Advanced Database Techniques
-
Sample Application
-
-
Chapter 9 Graphics
-
Embedding an Image in a Page
-
The GDGD Extension
-
Basic Graphics Concepts
-
Creating and Drawing Images
-
Images with Text
-
Dynamically Generated Buttons
-
Scaling Images
-
Color Handling
-
-
Chapter 10 PDF
-
PDF Extensions
-
Documents and Pages
-
Text
-
-
Chapter 11 XML
-
Lightning Guide to XML
-
Generating XML
-
Parsing XML
-
Parsing XML with DOM
-
Parsing XML with SimpleXML
-
Transforming XML with XSLT
-
Web Services
-
-
Chapter 12 Security
-
Filter Input
-
Escape Output
-
Cross-Site Scripting
-
Session Fixation
-
File Uploads
-
File Access
-
PHP Code
-
Shell Commands
-
More Information
-
Security Recap
-
-
Chapter 13 Application Techniques
-
Code Libraries
-
Templating Systems
-
Handling Output
-
Error Handling
-
Performance Tuning
-
-
Chapter 14 Extending PHP
-
Architectural Overview
-
What You'll Need
-
Building Your First Extensions
-
The config.m4 File
-
Memory Management
-
The pvaldata typespval /zvaldata typeszval Data Type
-
Parameter Handling
-
Returning Values
-
References
-
Global Variables
-
Creating Variables
-
Extension INI Entries
-
Resources
-
Where to Go from Here
-
-
Chapter 15 PHP on Windows
-
Installing and Configuring PHP on Windows
-
Writing Portable Code for Windows and Unix
-
Interfacing with COM
-
Interacting with ODBC Data Sources
-
-
Appendix A Function Reference
-
PHP Functions by Category
-
Alphabetical Listing of PHP Functions
-
-
Appendix B Extension Overview
-
Optional Extensions Listing
-
-
Colophon
Product Details
- Title:
- Programming PHP, Second Edition
- By:
- Rasmus Lerdorf, Kevin Tatroe, Peter MacIntyre
- Publisher:
- O'Reilly Media
- Formats:
-
- 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
